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.
ROLLBACK TRANSACTION [ savepoint-name ]
BEGIN SELECT row_num INTO #tmp FROM sa_rowgenerator( 1, 5 ) SAVE TRANSACTION before_delete UPDATE #tmp SET row_num=row_num*10 DELETE FROM #tmp WHERE row_num >= 3 ROLLBACK TRANSACTION before_delete SELECT * FROM #tmp END