
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 …
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 …
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 …
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 …
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 …
sql server - SQL Transaction Error: The current transaction cannot …
Aug 28, 2015 · I'm having a similar issue to The current transaction cannot be committed and cannot support operations that write to the log file, but I have a follow-up question. The answer …
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 …
java - Could not commit JPA transaction: Transaction marked as ...
Could not commit JPA transaction: Transaction marked as rollbackOnly This exception occurs when you invoke nested methods/services also marked as @Transactional.