skip to main content
Part 3: The 32-Bit Drivers : The dBASE Driver : Locking : Levels of Database Locking
  
Levels of Database Locking
The dBASE driver supports three levels of database locking: NONE, RECORD, and FILE. You can set these levels in:
*The connection string (LCK=)
*The Setup dialog box
No locking offers the best performance, but is intended only for single-user environments.
With record or file locking, the system locks the database files during Insert, Update, Delete, or Select...For Update statements. The locks are released when the user commits the transaction. The locks prevent other users from modifying the locked objects, but they do not lock out readers.
With record locking, only records affected by the statement are locked. Record locking provides better concurrency with other users who also want to modify the database file.
With file locking, all the records in the database file are locked. File locking has lower overhead and may work better if records are modified infrequently, if records are modified primarily by one user, or if a large number of records are modified.