Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. ADO Recordset

ADO Recordset

Scheduled Pinned Locked Moved C / C++ / MFC
c++databasehelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 1275958
    wrote on last edited by
    #1

    hi all , i am using Ado in mfc and i want to insert a record in the recordset but not in the database. Could i insert a record in recordset after i close the connction to the database. if some one can help pls reply soon ....

    U K 2 Replies Last reply
    0
    • U User 1275958

      hi all , i am using Ado in mfc and i want to insert a record in the recordset but not in the database. Could i insert a record in recordset after i close the connction to the database. if some one can help pls reply soon ....

      U Offline
      U Offline
      User 1418550
      wrote on last edited by
      #2

      I am not exactly sure whether it can be done or not, but even it can be done or not, what will you do by inserting a record in a recordset if you do not want to insert it in the database. As far as my knowledge goes, the recordset is used as an interface between the user and the actual database, and once the connection is closed with the databse the recordset will not exist !!! Pankaj

      1 Reply Last reply
      0
      • U User 1275958

        hi all , i am using Ado in mfc and i want to insert a record in the recordset but not in the database. Could i insert a record in recordset after i close the connction to the database. if some one can help pls reply soon ....

        K Offline
        K Offline
        Kurt _B
        wrote on last edited by
        #3

        I know you can have disconnected recordsets in ADO. I think you do this by setting the ActiveConnection property of the Recordset to NULL. As far as inserting a record I would imagine it would work. Hope this helps.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups