| description |
LockTypeEnum |
| title |
LockTypeEnum | Microsoft Docs |
| ms.prod |
sql |
| ms.prod_service |
connectivity |
| ms.technology |
ado |
| ms.custom |
|
| ms.date |
01/19/2017 |
| ms.reviewer |
|
| ms.topic |
reference |
| apitype |
COM |
| f1_keywords |
|
| helpviewer_keywords |
LockTypeEnum enumeration [ADO] |
|
| ms.assetid |
d2894eaf-4450-4ace-aa51-c8b875fd3010 |
| author |
rothja |
| ms.author |
jroth |
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 |
:::row:::
:::column:::
Clone Method (ADO)
LockType Property (ADO)
:::column-end:::
:::column:::
Open Method (ADO Recordset)
WillExecute Event (ADO)
:::column-end:::
:::row-end:::