A transaction is a single unit of work. If a transaction is successful, all of the data modifications made during the transaction are committed and become a permanent part of the database. If a transaction encounters errors and must be canceled or rolled back, then all of the data modifications are erased.
Microsoft® SQL Server™ operates in three transaction modes:
For more information, see Transactions.
| BEGIN DISTRIBUTED TRANSACTION | ROLLBACK WORK |
| BEGIN TRANSACTION | SAVE TRANSACTION |
| COMMIT TRANSACTION | SET IMPLICIT_TRANSACTIONS |
| COMMIT WORK | @@TRANCOUNT |
| ROLLBACK TRANSACTION |