What Is Transaction mode - Knowledge Is Free

Latest

Computer Tips, Tricks & Hacks.

BANNER 728X90

Wednesday 11 December 2013

What Is Transaction mode


|Transaction mode|




Transactions can be completed by either being committed or being rolled back. When a transaction is committed, the changes made in that transaction are made permanent. When a transaction is rolled back, the affected rows are returned to the state they were in before the transaction was started.

Transactions can be in one of two modes: auto-commit mode or manual-commit mode.

In auto-commit mode, every database operation is a transaction that is committed when performed. In databases without transaction support, auto-commit mode is the only supported mode. In such databases, statements are committed when they are executed and there is no way to roll them back; they are therefore always in auto-commit mode.

In manual-commit mode, applications must explicitly complete transactions by calling SAConnection::Commit to commit them or SAConnection::Rollback to roll them back. This is the normal transaction mode for most relational databases.

No comments:

Post a Comment