ROLLBACK TRANSACTION Statement [T-SQL]

Cancels any changes made since a savepoint was established using SAVE TRANSACTION. Changes made prior to the SAVE TRANSACTION are not undone; they are still pending.

Syntax

ROLLBACK TRANSACTIONsavepoint-name ]

Parameters

Examples

Standards

  • Vendor extension to ISO/ANSI SQL grammar.

Permissions

None, but there must be a corresponding SAVE TRANSACTION within the current transaction.
Related reference
BEGIN TRANSACTION Statement [T-SQL]
SAVE TRANSACTION Statement [T-SQL]