RollbackTransactions (ODBCConnection - LotusScript)

Rolls back changes when transaction mode is in effect. This applies to all uncommitted transactions pending through the connection, and takes no arguments.

Defined in

ODBCConnection

Syntax

status = odbcConnection .RollbackTransactions

Return value

  • True indicates that the pending changes were rolled back successfully.
  • False indicates an error.

Usage

Result sets are not affected by the RollbackTransactions method, nor is the back-end database. Instead, all of the as-yet-uncommitted updates in the translation log are erased.

Some data sources are auto-commit by default -- changes are automatically made to the database every time you update a record, rather than at specified intervals, as in transaction mode. If a database is in auto-commit mode, you cannot rollback your updates. Use the AutoCommit property to determine whether a database is in auto-commit mode.

Errors

Not connected

Events

BeforeRollbackTransactions

AfterRollbackTransactions