Depending on the
object's Connection
property, calling either the Attributes
or CommitTrans
methods may automatically start a new transaction. If the RollbackTrans
property is set to Attributes
, ADO automatically starts a new transaction after a adXactCommitRetaining
call. If CommitTrans
is set to Attributes
, ADO automatically starts a new transaction after a adXactAbortRetaining
call. RollbackTrans
Take care to note what state the driver is in. The ODBC provider for ADO does not support multiple simultaneous transactions within a single connection. As such, if we attempt a
and the previous BeginTrans
automatically created a new transaction, an error will result.CommitTrans
Note that once you start a transaction yourself, rather than having it started automatically, you will have to manually manage transactions until the connection is closed and reopened.