The Preserve on Commit property specifies whether a recordset remains active after a transaction is committed.
object.Properties("Preserve on Commit") [= value]
object
Expression that evaluates to an object in the Applies To list.
value
Boolean that specifies whether a recordset remains active, as specified in Settings.
Value | Description |
---|---|
True | After committing a transaction, the recordset remains active. Therefore, it is possible to fetch new rows; update, delete, and insert rows; and so on. |
False | After committing a transaction, the only operations allowed on a recordset are to release rows and the recordset. |
adBoolean
Read/write
DBPROP_COMMITPRESERVE
Preserve on Commit applies only to local transactions.
Prepare Abort Behavior Property