Professional Documents
Culture Documents
Advanced Database: Transaction
Advanced Database: Transaction
Transaction
• A transaction is a single unit of work that typically contains multiple T-SQL
statements.
• If a transaction is successful, the changes are committed to the database. However,
if a transaction has an error, the changes have to be rolled back.
• Each transaction must happen two things in SQL Server:
• Either all modification is successful when the transaction is committed.
• Or, all modifications are undone when the transaction is rollback.
Transaction properties