ROLLBACK WORK
rollback
What changes
- Input
- open transaction or savepoint
- Output or change
- undoes changes to the start or savepoint
Syntax at a glance
ROLLBACK [ WORK ] [ ; ]
Work example
A script uses the ISO form to undo the current transaction after a failed check.
Confirm which transaction level is active and preserve the error that led to rollback.
Check your work ROLLBACK WORK. The intended work is undone and the transaction count returns to its expected level.
Open Microsoft Learn for full syntax, permissions, and details for your version.