|
-
Aug 28th, 2003, 12:53 PM
#1
Thread Starter
Addicted Member
Do I really need a DataSet? (RESOLVED)
I'm trying to make a simple program thats adds, updates, deletes and finds records using MS Access and OleDb.
Do I need a DataSet or just a DataTable?
How to proceed?
Thanks.
Last edited by AlvaroF1; Sep 15th, 2003 at 06:11 AM.
-
Aug 28th, 2003, 01:21 PM
#2
Frenzied Member
You better read about the ADO.NET data model before starting. and for your application i think you need that. actually datasets can be considered as a kind of containers of data tables.
'Heading for the automatic overload'
Marillion, Brave, The Great Escape, 1994
'How will WE stand the FIRE TOMORROW?'
Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979
-
Aug 28th, 2003, 04:30 PM
#3
Member
You don't need a dataset to do any of that, but depending on what you are doing you may need one to store the data you retrieve from your DB.
As far as finding data, if you want a quick forward only way to read data then you can use a data reader. Otherwise you will need a data set.
You only need a connection and a command object to execute Sql DML statements that return no data.
-
Aug 28th, 2003, 06:15 PM
#4
Frenzied Member
Re: Do I really need a DataSet?
Originally posted by AlvaroF1
I'm trying to make a simple program thats adds, updates, deletes and finds records using MS Access and OleDb.
Do I need a DataSet or just a DataTable?
How to proceed?
Thanks.
If you are doing updates, deletes and such, then a DataSet is the way to go.
-
Sep 15th, 2003, 06:11 AM
#5
Thread Starter
Addicted Member
Originally posted by munsworth
You don't need a dataset to do any of that, but depending on what you are doing you may need one to store the data you retrieve from your DB.
As far as finding data, if you want a quick forward only way to read data then you can use a data reader. Otherwise you will need a data set.
You only need a connection and a command object to execute Sql DML statements that return no data.
You are right. I'm using only a connection, a command and a datareader object to add, find, update and delete records.
Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|