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. the connection object and recorsets

the connection object and recorsets

Scheduled Pinned Locked Moved C / C++ / MFC
databasequestion
2 Posts 2 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.
  • N Offline
    N Offline
    ns
    wrote on last edited by
    #1

    If you close the connection object, is the recordset stil available for use. My rs is generated like so:

    m\_pRecordsetPhoto->Open ((IDispatch \*) m\_pCommandPhoto, vtMissing, adOpenKeyset,
    						adLockOptimistic, -1);
    

    I know very little about databases> does this declaration above indicate anything about its persistence when the conn is closed. I feel that if I close te conn, then later I cant go and quiz the database for something like rs->fields->item->value etc. because theres no connection.?? Thanks, ns:confused:

    D 1 Reply Last reply
    0
    • N ns

      If you close the connection object, is the recordset stil available for use. My rs is generated like so:

      m\_pRecordsetPhoto->Open ((IDispatch \*) m\_pCommandPhoto, vtMissing, adOpenKeyset,
      						adLockOptimistic, -1);
      

      I know very little about databases> does this declaration above indicate anything about its persistence when the conn is closed. I feel that if I close te conn, then later I cant go and quiz the database for something like rs->fields->item->value etc. because theres no connection.?? Thanks, ns:confused:

      D Offline
      D Offline
      DanielO
      wrote on last edited by
      #2

      hi, Look at article: ADO at a glance on this website for better understanding DanielO

      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