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 related question

ADO related question

Scheduled Pinned Locked Moved C / C++ / MFC
questiondatabasec++sysadmin
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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Friends, We use ADO with VC++ in order to deal with database servers. My question is related to recordset object. When we execute certain query of select statement, the recoredset object contains the resultant records. Now please tell me where these records are actually present by default whether client side or server side ?? What happens when we fetch next record from recordset object? I want all records to be present on my client machine so that when i fetch records, there'll be no need to consult back server...how can i do so ???

    G F 2 Replies Last reply
    0
    • L Lost User

      Friends, We use ADO with VC++ in order to deal with database servers. My question is related to recordset object. When we execute certain query of select statement, the recoredset object contains the resultant records. Now please tell me where these records are actually present by default whether client side or server side ?? What happens when we fetch next record from recordset object? I want all records to be present on my client machine so that when i fetch records, there'll be no need to consult back server...how can i do so ???

      G Offline
      G Offline
      Giles
      wrote on last edited by
      #2

      It depends. In ADO, you can set the cursor location to be server side or client side cursors. To force a recordset to be client side, do the following before you open the table/select statement etc. Note, this is VB code for swiftness. rs.CursorLocation = adUseClient For server side - adUseServer


      Shameless Plug - Distributed Database Transactions in .NET using COM+

      1 Reply Last reply
      0
      • L Lost User

        Friends, We use ADO with VC++ in order to deal with database servers. My question is related to recordset object. When we execute certain query of select statement, the recoredset object contains the resultant records. Now please tell me where these records are actually present by default whether client side or server side ?? What happens when we fetch next record from recordset object? I want all records to be present on my client machine so that when i fetch records, there'll be no need to consult back server...how can i do so ???

        F Offline
        F Offline
        fat888
        wrote on last edited by
        #3

        By default, the recordset objects are present on the server side. When you fetch a record from the recordset object, the data are got from the server via the network. You can let them be present on the client compute by changing the CursorLocation property of the recordset object. In VC++: _RecordsetPtr pRs; pRs.CreateInstance(__uuidof(Recordset)); pRs->CursorLocation = ADOCG::adUseClient; //set the cursor to be client side pRs->CursorLocation = ADOCG::adUseServer; //server side, the default Hi guys. I'm a very fat man. Do you like fat men?

        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