Results 1 to 6 of 6

Thread: multiple connections to same database

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2000
    Location
    Isle of Man
    Posts
    276
    I'm running 2 apps connected to the same DB with ADO.

    when I Update a row on in one, the changes are not reflected in the other app. If I check the tables in access, the changes are made. is there a way I can force my apps to refresh their connections and get the latest db

  2. #2
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    617

    hmm

    doesn't it all depend on how u open your recordset in the other app... ? adopendynamic? u need ..

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2000
    Location
    Isle of Man
    Posts
    276
    that's what I thought, but it doesnt seem to be so....

  4. #4
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    617

    R U USING A DISCONNECTED RECORDSET?

    ?

    If u don't mind, just cut/paste a caption of your sql invocation.. (Another set of eyes sometimes...)

  5. #5
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    617

    ok

    "By default the Synchronization service is disabled and cannot be used to perform resynchronization"

    If one needs synchronization, the recordset needs to be opened with a CursorLocation of adUseClient
    and a LockType of adlockBatchOptimistic

    with that locktype OLEDB Cursor service will create a cached rowset that lends itself to synchronization later

    So, if u had a disconnected recordset
    and if u had opened it the way I descried above
    do this to resync

    with recordset
    set .active connection = actual connection
    .resync
    end with

    Vale!

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2000
    Location
    Isle of Man
    Posts
    276

    excellent

    that seems to work a treat.

    thanks a lot!

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