AdsUnlockRecord

Advantage Client Engine

Unlocks the given record

Syntax

UNSIGNED32

AdsUnlockRecord (ADSHANDLE hTable,

UNSIGNED32 ulRec);

Parameters

hTable (I)

Handle of table or cursor.

ulRec (I)

Record number to unlock. If zero, then unlock the current record.

Special Return Codes

AE_RECORD_NOT_LOCKED

The indicated record was not locked.

AE_INVALID_RECORD_NUMBER

The record number given was not valid.

Remarks

AdsUnlockRecord releases the server’s lock on the record and flushes any changes in the record to disk.

Note Records cannot be unlocked on the server during transactions. Therefore, calls to AdsUnlockRecord during a transaction will cause the Advantage Client Engine to mark the record lock as "unlocked during transaction", and the Advantage Client Engine will release the lock at the end (commit or rollback) of the transaction.

Example

Click Here

See Also

AdsLockRecord

AdsIsRecordLocked

AdsLockTable

AdsGetAllLocks

AdsUnlockTable