Results 1 to 4 of 4

Thread: What is the purpose of a recordset?

  1. #1

    Thread Starter
    Fanatic Member Nove's Avatar
    Join Date
    Jul 2004
    Posts
    736

    What is the purpose of a recordset?

    Just trying to get a grasp on database concepts, but it seems like I could just edit a database using .execute statements, if that's true, what is the purpose of a recordset?

    Also, going through on a trial run with a mysql database, I've managed to save an entry (using a recordset), but how do I save any changes to the actual database? Thanks.

  2. #2
    Junior Member
    Join Date
    Nov 2003
    Posts
    22

    Re: What is the purpose of a recordset?

    Quote Originally Posted by Nove
    Just trying to get a grasp on database concepts, but it seems like I could just edit a database using .execute statements, if that's true, what is the purpose of a recordset?

    Also, going through on a trial run with a mysql database, I've managed to save an entry (using a recordset), but how do I save any changes to the actual database? Thanks.
    Recordsets are extremely useful (and pretty much required) for retrieving, sorting, searching, and displaying data from a database. I do not personally use them for updating data; I prefer to use SQL INSERT/UPDATE/DELETE statements via the Connection object's Execute method.

    Regards,

  3. #3
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: What is the purpose of a recordset?

    Nove,

    Recordset are mainly used to return multiple record data from the database for viewing or to peruse through.

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: What is the purpose of a recordset?

    Quote Originally Posted by Nove
    but how do I save any changes to the actual database? Thanks.
    By using either the recordset's .AddNew/.Update methods or by using SQL INSERT INTO or UPDATE querys.

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