begin tran, rollback tran, commit tran

You can use 'begin tran' to check the impact of sql commands without actually modifying the db. If the results are as expected, use 'commit tran' to commit. Otherwise, use 'rollback tran' to undo the changes.

Ref:-