dbLockingMode property (Main Control)

Visual Basic example
Visual C++ 4.0 example

Visual J++ example

Syntax short dbLockingMode

Overview:  Refer to Managing Images in a Database

Remarks

Specifies the record-locking strategy to use when updating an existing record in the database.

Setting

Meaning

DB_LOCKINGMODE_OPTIMISTIC

Locks the record being updated only during the call to the dbUpdate method.

DB_LOCKINGMODE_PESSIMISTIC

Locks the record as soon as dbEdit method is called and keeps it locked until the dbUpdate method call completes or you move to a new record.

See Also

Elements:  dbAddNew method, dbEdit method, dbUpdate method, dbDelete method

Topics:  Databases: Using ODBC