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

SAP Sybase SQL Anywhere 16.0 » SQL Anywhere Server - Programming » Application development using SQL » Transactions in applications

 

Autocommit and manual commit mode

Database programming interfaces can operate in either manual commit mode or autocommit mode.

  • Manual commit mode   Operations are committed only when your application carries out an explicit commit operation or when the database server carries out an automatic commit, for example when executing an ALTER TABLE statement or other data definition statement. Manual commit mode is also sometimes called chained mode.

    To use transactions in your application, including nested transactions and savepoints, you must operate in manual commit mode.

  • Autocommit mode   Each statement is treated as a separate transaction. Autocommit mode is equivalent to appending a COMMIT statement to the end of each of your SQL statements. Autocommit mode is also sometimes called unchained mode.

Autocommit mode can affect the performance and behavior of your application. Do not use autocommit if your application requires transactional integrity.

For information about how autocommit mode affects performance, see Tip: Turn off autocommit mode.


How to control autocommit behavior
Autocommit implementation details