
How to rollback or commit a transaction in SQL Server
Feb 22, 2013 · The good news is a transaction in SQL Server can span multiple batches (each exec is treated as a separate batch.) You can wrap your EXEC statements in a BEGIN …
sql server - SQL Transaction was deadlocked - Stack Overflow
Sometimes I get this kind of exception on not very busy SQL server: Transaction (Process ID 57) was deadlocked on lock resources with another process and has been chosen as the …
Row was updated or deleted by another transaction (or unsaved …
optimistic locking consists in detecting that another transaction has updated/deleted the same row, and throwing the exception you're getting in this case. If you have a version field, you're …
Sql server - log is full due to ACTIVE_TRANSACTION
May 23, 2014 · In my case neither restarting SQL Server nor shrinking the database worked. The db was restored from a backup and I think something was wrong with backup itself. I ended up …
sql server - How to use SqlTransaction in C# - Stack Overflow
There is an Update query in progress, the Transaction is started at a higher level on the connection. In order to ensure that all server data is in a valid state for the Update, I need to …
Database.BeginTransaction vs Transactions.TransactionScope
TransactionScope offer broader options, BeginTransaction has a simpler API TransactionScope allows to customize the transaction timeout, support nested transactions with various …
TSQL Try / Catch within Transaction or vice versa?
Apr 14, 2014 · END CATCH --COMMIT TRANSACTION SCHEDULEDELETE --Run this if count correct. --ROLLBACK TRANSACTION SCHEDULEDELETE --Run this if there is any doubt …
c# - How to use TransactionScope properly? - Stack Overflow
Aug 19, 2015 · The code within the methods you call need to be transaction aware and enlist in the active transaction. This means creating or using classes which are resource managers …
The transaction log for database 'tempdb' is full due to 'ACTIVE ...
Jul 25, 2017 · @GiulioCaccin Thank you for the suggestion, but I ran a query on the transaction logs and the log space used for tempdb is only at 31%. The other inquiry you referred me to …
Why use a READ UNCOMMITTED isolation level? - Stack Overflow
Sep 22, 2017 · In plain English, what are the disadvantages and advantages of using SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED in a query for .NET applications …