Follow Me : https://www.youtube.com/c/SauravAgarwal
○ Actions performed on explicit transaction:
BEGIN TRANSACTION: marks the starting point of an explicit transaction for a connection.
COMMIT TRANSACTION (transaction ends): used to end an transaction successfully if no errors
were encountered. All DML changes made in the transaction become permanent.
ROLLBACK TRANSACTION (transaction ends): used to erase a transaction which errors are
encountered. All DML changes made in the transaction are undone.
SAVE TRANSACTION (transaction is still active): sets a savepoint in a transaction. If we roll
back, we can only rollback to the most recent savepoint. Only one save point is possible per
transaction. However, if you nest Transactions within a Master Trans, you may put Save points in
each nested Tran. That is how you create more than one Save point in a Master Transaction.
Do'stlaringiz bilan baham: