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.

Quick Links:

Go to Parameters

Go to Standards

Go to Permissions

Syntax

ROLLBACK TO SAVEPOINTsavepoint-name ]

Parameters

(back to top)

Standards

(back to top)

  • SQL—Vendor extension to ISO/ANSI SQL grammar.
  • SAP Sybase Database product—Savepoints are not supported by Adaptive Server. To implement similar features in an Adaptive Server-compatible manner, you can use nested transactions.

Permissions

(back to top)

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

Related reference
RELEASE SAVEPOINT Statement
ROLLBACK Statement
SAVEPOINT Statement