rollback transaction

Description

Rolls back a user-specified transaction to the beginning of the transaction.

Syntax

rollback {transaction | tran | work}
 [transaction_name]

Parameters

tran

is another term for transaction.

work

is another term for transaction.

transaction_name

is the name assigned to the transaction. It must conform to the rules for identifiers.

Examples

Example 1

rollback transaction

Usage