|
<< Click to Display Table of Contents >> Acquired locks |
![]() ![]()
|
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 Persistent Table 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.