Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 12.0.0 » UltraLite - C and C++ Programming » Application development » Developing applications using the UltraLite C++ API

 

Managing transactions

The UltraLite C++ API does not support AutoCommit mode. Transactions are started implicitly by the first statement to modify the database, and must be explicitly committed or rolled back.

 To commit a transaction
  • Execute a conn->Commit statement, where conn is a valid ULConnection pointer.

    See Commit method.

 To roll back a transaction
  • Execute a conn->Rollback statement, where conn is a valid ULConnection pointer.

    See Rollback method.

For more information about transaction management in UltraLite, see UltraLite transaction processing.