SDAC

TCustomMSDataSet.LockTable Method

Locks a table to prevent multiple access to it.

Class

TCustomMSDataSet

Syntax

procedure LockTable(LockType: TMSLockType);

Parameters
LockType
Holds the lock type.

Remarks

This method locks the underlying dataset's table to prevent multiple users' access to it.

Table lock can be performed only within a transaction. If an application cannot update/lock a table because it has already been locked, it will wait until the lock is released. When the server lock timeout has expired, but lock is not acquired, an exception will be raised. Lock is released when the transaction is committed/rolled back.

See Also

© 1997-2024 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback