I have a multi-user application that requires a table-level lock
during an update so no users can write to the table during the update.
(All records are written out to a temp table, the records in the main table are then deleted, the records are sorted in the temp table, and the sorted records are then re-written to the original table during the update. This is done to maintain the table relationships.)
I tried adLockPessimistic, but that only accomplishes a record-level
lock. I need a table-level lock that will either return an error or simply wait when a user tries to write during the time the table is locked out.
Any help will be greatly appreciated.
during an update so no users can write to the table during the update.
(All records are written out to a temp table, the records in the main table are then deleted, the records are sorted in the temp table, and the sorted records are then re-written to the original table during the update. This is done to maintain the table relationships.)
I tried adLockPessimistic, but that only accomplishes a record-level
lock. I need a table-level lock that will either return an error or simply wait when a user tries to write during the time the table is locked out.
Any help will be greatly appreciated.