Results 1 to 2 of 2
  1. #1
    twgonder is offline Expert
    Windows 10 Access 2021
    Join Date
    Jun 2022
    Location
    Colombia
    Posts
    714

    SQQL record locking

    I have a menu form that is logging jobs (collection of objects: form, query, report) run by users.
    For most of it I use SQL Insert/Update/Delete via DoCmd.Execute.

    I’ve started wondering what will happen when multiple users in a split database start updating the log file at the same time.
    These tables don’t user Access autonumbers as the ID. I create my own primary key.

    I’ve seen these pages:
    https://learn.microsoft.com/en-us/of...rm.recordlocks
    https://eileenslounge.com/viewtopic.php?t=9414
    Lots of other videos and blogs, but I don’t see any mention of how to handle in a split db situation.

    They don’t seem to apply to SQL Update, Insert, Delete, just forms or a query (which I know is an SQL, so how it’s handled remains a mystery).

    Is it possible to have one SQL request attempting to write over another SQL at the same time?
    Does the underlying DB engine know to finish one user’s SQL request before starting another’s SQL statement?
    Is there a way to turn on pessimistic locking for SQL statements and how reliable is it?


    What error situations might we have to deal with in the VBA procedures?
    How about when using Set rs and rs.update?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    and what are the odds of 2 users editing the same record at the same time?

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 9
    Last Post: 12-08-2021, 02:40 AM
  2. Replies: 3
    Last Post: 04-18-2018, 09:02 PM
  3. Replies: 3
    Last Post: 11-01-2013, 10:16 AM
  4. Locking a record
    By aytee111 in forum Access
    Replies: 3
    Last Post: 04-24-2012, 05:31 PM
  5. Record Locking
    By nyAccess in forum Database Design
    Replies: 4
    Last Post: 07-17-2011, 05:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums