Results 1 to 5 of 5

Thread: Do I really need a DataSet? (RESOLVED)

  1. #1

    Thread Starter
    Addicted Member AlvaroF1's Avatar
    Join Date
    Sep 2002
    Location
    SP - Brazil
    Posts
    200

    Question 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.

  2. #2
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    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

  3. #3
    Member
    Join Date
    Nov 2002
    Location
    San Antonio, TX
    Posts
    35
    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.

  4. #4
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256

    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.

  5. #5

    Thread Starter
    Addicted Member AlvaroF1's Avatar
    Join Date
    Sep 2002
    Location
    SP - Brazil
    Posts
    200
    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
  •  



Click Here to Expand Forum to Full Width