Acquired locks

<< Click to Display Table of Contents >>

Navigation:  Application development > Locking >

Acquired locks

Previous pageReturn to chapter overviewNext page

All locks acquired after the table is opened are owned by the session, rather than the cursor. There are several types of acquired locks:

Acquired Table Locks

Acquired Persistent Table Locks

Record Locks

Checking a table's lock status

To check the acquired lock status of a table use DbiIsTableLocked. The application specifies the type of lock (no lock, read lock, or write lock) and the function returns the number of locks of that type placed on the table.

For dBASE, FoxPro, Access, and Paradox tables, to check whether the table is physically shared on a network or local drive and opened in share mode, use DbiIsTableShared. For SQL tables, this function can be used to check whether the table was opened in SHARE mode.

 

hmtoggle_plus1Locking topics