Advantage SQL Engine
Returns a result set containing all record numbers of records that are locked in the given table.
EXECUTE PROCEDURE sp_mgGetAllLocks( TableName,Character,255 )
TableName (I) |
Fully qualified path to the table. |
RecordNumber (O) |
Record Numbers of locked records. |
This procedure returns a result set containing all record numbers of records that are currently locked in the given table. To view the name of the user that has a particular record locked, use the sp_mgGetLockOwner procedure.
Note With the Advantage Local Server, sp_mgGetAllLocks will only return information about locks instantiated by the instance of Advantage Local Server currently loaded into memory. Information about locks instantiated from other instances of Advantage Local Server will not be returned.
EXECUTE PROCEDURE sp_mgGetAllLocks( '\\server\share\data\table.adt' );
See Also