Results 1 to 6 of 6

Thread: CursorLocation and LockType

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2000
    Location
    Forest
    Posts
    545

    CursorLocation and LockType

    Can someone explain to me when to use what cursorlocation and locktype for opening recordset?
    Bird of Prey

    Mr. Bald Eagle.
    [img][/img]

  2. #2
    New Member
    Join Date
    Dec 2002
    Posts
    13
    adOpenForwardOnly - Static copy of records. Doesn't reflect changes done by other users. Can only move forward through the recordset.

    adOpenStatic - Also a static copy of records. However all types of movement are supported.

    DAO adOpenDynamic - Non-static copy of records. Shows changes done by other users. All types of movement supported.

    DAO adOpenKeyset - Records are updateable. However additions and deletions don't appear.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2000
    Location
    Forest
    Posts
    545
    Thanks but I know all of that already. That is cursor type.

    I am looking to understand cursorlocation(clientside, serverside) and locktype.
    Bird of Prey

    Mr. Bald Eagle.
    [img][/img]

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    adLockReadOnly (Default) Read-only — users cannot alter the data.
    adLockPessimistic Pessimistic locking, record by record — the provider does what is necessary to ensure successful editing of the records, usually by locking records at the data source immediately upon editing.
    adLockOptimistic Optimistic locking, record by record — the provider uses optimistic locking, locking records only when the Update method is called.
    adLockBatchOptimistic Optimistic batch updates — required for batch update mode as opposed to immediate update mode.


    cursor location:
    http://msdn.microsoft.com/library/en...idecursors.asp

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2000
    Location
    Forest
    Posts
    545
    Thanks Mendhak,

    You and JoshT has helped me quite a bit on ASP questions in the past.

    By any chance, do you know anything about this one?

    http://www.vbforums.com/showthread.php?threadid=232076

    Thanks again,

    Hawk
    Bird of Prey

    Mr. Bald Eagle.
    [img][/img]

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Originally posted by Hawk
    Thanks Mendhak,

    You and JoshT has helped me quite a bit on ASP questions in the past.

    By any chance, do you know anything about this one?

    http://www.vbforums.com/showthread.php?threadid=232076

    Thanks again,

    Hawk
    You're welcome, and click here.

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