ROLLBACK TO SAVEPOINT Statement

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

Syntax

ROLLBACK TO SAVEPOINTsavepoint-name ]

Parameters

Standards

  • SQL—Vendor extension to ISO/ANSI SQL grammar.

  • Sybase—Savepoints are not supported by Adaptive Server Enterprise. To implement similar features in an Adaptive Server Enterprise-compatible manner, you can use nested transactions.

Permissions

None, but there must have been a corresponding SAVEPOINT within the current transaction.

Related reference
RELEASE SAVEPOINT Statement
ROLLBACK Statement
SAVEPOINT Statement