CRecordset::SetLockingMode

void SetLockingMode( UINT nMode );

Parameters

nMode

Contains one of the following values from the enum LockMode:

Remarks

Call this member function if you need to specify which of two record-locking strategies the recordset is using for updates. By default, the locking mode of a recordset is optimistic. You can change that to a more cautious pessimistic locking strategy. Call SetLockingMode after you construct and open the recordset object but before you call Edit.

CRecordset OverviewClass MembersHierarchy Chart

See Also   CRecordset::Edit, CRecordset::Update