|
|
|
|
Browse by Tags
All Tags » Transact SQL » Data Integrity » Concurrency (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 ...
-
Wrapping related changes in a transaction is a good way to ensure data integrity. Besides, in some cases it just runs noticeably faster, using less CPU. As usual, I am posting repro scripts, which you can run, tweak, and see for yourself.
Environment
I've run my scripts on 2008 R2 Dev Edition. Snapshot isolation is enabled, ...
|
|
|
|
|