| title | LockTypeEnum | Microsoft Docs | |
|---|---|---|
| ms.prod | sql | |
| ms.prod_service | connectivity | |
| ms.technology | connectivity | |
| ms.custom | ||
| ms.date | 01/19/2017 | |
| ms.reviewer | ||
| ms.topic | conceptual | |
| apitype | COM | |
| f1_keywords |
|
|
| helpviewer_keywords |
|
|
| ms.assetid | d2894eaf-4450-4ace-aa51-c8b875fd3010 | |
| author | MightyPen | |
| ms.author | genemi |
Specifies the type of lock placed on records during editing.
| Constant | Value | Description |
|---|---|---|
| adLockBatchOptimistic | 4 | Indicates optimistic batch updates. Required for batch update mode. |
| adLockOptimistic | 3 | Indicates optimistic locking, record by record. The provider uses optimistic locking, locking records only when you call the Update method. |
| adLockPessimistic | 2 | Indicates pessimistic locking, record by record. The provider does what is necessary to ensure successful editing of the records, usually by locking records at the data source immediately after editing. |
| adLockReadOnly | 1 | Indicates read-only records. You cannot alter the data. |
| adLockUnspecified | -1 | Does not specify a type of lock. For clones, the clone is created with the same lock type as the original. |
Package: com.ms.wfc.data
| Constant |
|---|
| AdoEnums.LockType.BATCHOPTIMISTIC |
| AdoEnums.LockType.OPTIMISTIC |
| AdoEnums.LockType.PESSIMISTIC |
| AdoEnums.LockType.READONLY |
| AdoEnums.LockType.UNSPECIFIED |
| Clone Method (ADO) | LockType Property (ADO) |
| Open Method (ADO Recordset) | WillExecute Event (ADO) |