My name is Glenn, I am an experienced VB5.0/6.0 programmer who is starting a
new project using VB.NET.
The project is simple but will be using a .mdb file for storing of data.
Only one person will be accessing the database at one time and the database
will be stored on a mapped shared folder.
I have been reading on ADO.NET and am getting a little confused and
wondering if I am am doing the right thing. The use of Data Adapters and
Data Sets just seems to be quite complicated for a small use of data access.
I am posting this to ask for an opinion on the best method to access this
database in this app. I am very happy to research the suggestions, I just
dont want to waste time researching something that wont suit/work.
If there are any further information you require please aks anything you can.
Thank you.
Glenn. 6 1641
Tippy,
I had when I started with it the same opinion as you, however AdoNet is
basicly very easy to use (In a multiuser environment it becomes more
complex, however that is as well with AdoDB in my opinion).
Have a look at the resource kit.
VB.net Resource kit http://msdn.microsoft.com/vbasic/vbrkit/default.aspx
And if you have problems installing the resource kit http://msdn.microsoft.com/vbasic/vbr...q/#installvdir
Newsgroups for VBNet and for AdoNet are
microsoft.public.dotnet.languages.vb
microsoft.public.dotnet.framework.adonet
And please do not multipost, when you have a question where you do not know
where to place it crosspost it, that is no problem at all in dotNet
newsgroups. (Crossposting sending one message to more newsgroups).
I hope this helps?
Cor
<"=?Utf-8?B?VGlwcHkgRw==?=" <Tippy G@discussions.microsoft.com>>
wrote: I have been reading on ADO.NET and am getting a little confused and wondering if I am am doing the right thing. The use of Data Adapters and Data Sets just seems to be quite complicated for a small use of data access.
One thing to bear in mind is that you don't have to use DataSets
themselves - they're just collections of DataTables. You can ignore
DataSets and go straight for DataTables to use with DataAdapters.
--
Jon Skeet - <sk***@pobox.com> http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Jon, One thing to bear in mind is that you don't have to use DataSets themselves - they're just collections of DataTables. You can ignore DataSets and go straight for DataTables to use with DataAdapters.
I would not give that advice, using datatables gives problems when you want
to save it as a file, serialize it for web use and things like that.
I saw a lot of messages from people who takes that datatable approach and
become a little bit in trouble.
Of course is a datatable almost a disconnected lookalike from a recordset.
Just my 2 cents
Cor
Cor Ligthert <no**********@planet.nl> wrote: One thing to bear in mind is that you don't have to use DataSets themselves - they're just collections of DataTables. You can ignore DataSets and go straight for DataTables to use with DataAdapters. I would not give that advice, using datatables gives problems when you want to save it as a file, serialize it for web use and things like that.
You can always put a DataTable into a DataSet if you need to, later on.
Furthermore, bear in mind that the OP specifically said it was for a
simple project - I very much doubt that it will incur any of the
problems above. When the problem's simple, I recommend using a simple
solution :)
I saw a lot of messages from people who takes that datatable approach and become a little bit in trouble.
That doesn't necessarily mean that using DataTables was the problem, of
course...
--
Jon Skeet - <sk***@pobox.com> http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Jon, You can always put a DataTable into a DataSet if you need to, later on.
No you cannot put a datatable into a dataset.
A dataset is an object that holds references to datatables. You can create a
new dataset and add references in the tableproperty from that too datatables
using the tables.add method
A dataset is not a container that holds values in a very classic way.
Furthermore, bear in mind that the OP specifically said it was for a simple project - I very much doubt that it will incur any of the problems above. When the problem's simple, I recommend using a simple solution :)
Therefore I would not point on alternatives with Newbies, take the approach
as it is the most written on MSDN, and that is using the dataset. I saw a lot of messages from people who takes that datatable approach and become a little bit in trouble.
That doesn't necessarily mean that using DataTables was the problem, of course...
If you say so, can you give me an example what it could have been?
Cor
Cor Ligthert <no**********@planet.nl> wrote: You can always put a DataTable into a DataSet if you need to, later on. No you cannot put a datatable into a dataset.
Um, yes you can, in exactly the way that you then describe...
A dataset is an object that holds references to datatables. You can create a new dataset and add references in the tableproperty from that too datatables using the tables.add method
In what way is that not putting a DataTable into a DataSet? The result
is exactly the same as if you created the DataSet and populated it
automatically, then retrieved the DataTable.
A dataset is not a container that holds values in a very classic way.
It's a container in the same way that (say) an ArrayList is. Furthermore, bear in mind that the OP specifically said it was for a simple project - I very much doubt that it will incur any of the problems above. When the problem's simple, I recommend using a simple solution :)
Therefore I would not point on alternatives with Newbies, take the approach as it is the most written on MSDN, and that is using the dataset.
But that involves more complexity than just using DataTables. I saw a lot of messages from people who takes that datatable approach and become a little bit in trouble.
That doesn't necessarily mean that using DataTables was the problem, of course...
If you say so, can you give me an example what it could have been?
If you could give me an example of the problem, certainly :)
--
Jon Skeet - <sk***@pobox.com> http://www.pobox.com/~skeet
If replying to the group, please do not mail me too This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: great_googley_moogley |
last post by:
Greetings,
I am in the process of installing a SQL database at a customer
location. I have determined that there are 3 ways to do this, and I
wanted to know which is the best of the 3.
1...
|
by: Joe Bloggs |
last post by:
I have a general question on best practice regarding data access. I have
the code below, a static method defined in a class that I use in a data
layer dll. The method takes a string as its...
|
by: LP |
last post by:
Hi,
I will be taking on a new project developing a web-based "reporting system".
The first requirement I got from BI group is "we just want to look at the
data". Basically, there is a huge...
|
by: Anonieko Ramos |
last post by:
ASP.NET Forms Authentication Best Practices
Dr. Dobb's Journal February 2004
Protecting user information is critical
By Douglas Reilly
Douglas is the author of Designing Microsoft ASP.NET...
|
by: Tippy G |
last post by:
My name is Glenn, I am an experienced VB5.0/6.0 programmer who is starting a
new project using VB.NET.
The project is simple but will be using a .mdb file for storing of data.
Only one person...
|
by: C# Beginner |
last post by:
I'm currently creating a database class, which contains a member called
Open(). With this method users can open different databases. When a user
tries to open a database which happens to be secured...
|
by: =?Utf-8?B?TWljaGVsIFBvc3NldGggW01DUF0=?= |
last post by:
In my opinion rethrowing exceptions without providing anny extra information
is a totall waste
Examples :
in my opinion wrong :
A:
Public sub DoSomeStuff()
Try
do it
|
by: CProgrammer80 |
last post by:
I am compiling 4 different programs, each using a lot of the same core functions and files. One of the programs requires access to a large third party library, the others do not.
I have created...
|
by: timmg |
last post by:
I have an application were users evaluate records and based on the
amount of money involved answer between 17 and a 120 questions on one
of three response forms. I have a master list of question...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
| |