|
|
|
|
Browse by Tags
All Tags » Data Integrity » Transactions (RSS)
-
To ensure atomicity of transactions, we can use XACT_ABORT ON or wrap the transaction in TRY block and rollback in CATCH block. In some cases, the XACT_ABORT ON approach uses noticeably less CPU. I am posting repro scripts. Please run them, tweak them, and post your findings.
Environment
I've run my scripts on 2008 R2 Dev Edition. Snapshot ...
|
|
|
|
|