About 54 results
Open links in new tab
  1. Correct use of transactions in SQL Server - Stack Overflow

    Apr 14, 2012 · Add a try/catch block, if the transaction succeeds it will commit the changes, if the transaction fails the transaction is rolled back:

  2. sql - O que são as transações Begin, Commit e Rollback? - Stack ...

    May 10, 2017 · O que são as Transações Begin, Commit e Rollback? E como usá-los? Exemplo na prática vai ajudar bastante no entendimento.

  3. sql - The transaction log for the database is full - Stack Overflow

    I have a long running process that holds open a transaction for the full duration. I have no control over the way this is executed. Because a transaction is held open for the full duration, whe...

  4. What is the difference between a query and transaction in SQL?

    Apr 23, 2021 · The "Q" in SQL stands for "Query": All SQL is a "query" even if it doesn't return anything (eg a create table query) - search for DDL, DML and DCL). All queries are run within a transaction.

  5. When to use Transactions in SQL Server - Stack Overflow

    So will there be a difference in a single select statement if I use it in a transaction or without a transaction? I Mean why would i need to use a transaction just to read the data?

  6. sql - What does a transaction around a single statement do? - Stack ...

    An addenda from the future: declaring such a transaction does add some overhead to the processing of the query, since SQL has to manage the declared transaction. This overhead is small, but it does …

  7. How do I "test" a sql query that modifies data, i.e. see the output ...

    Jul 16, 2014 · Is there a way in SQL Server 2008 R2 to "execute" a query, see the output for the affected rows, and then choose to accept or throw away the commit? EDIT: I also found another question …

  8. 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 TRANSACTION and …

  9. sql - Transaction count after EXECUTE indicates a mismatching number …

    Feb 21, 2014 · Exec USPStoredProcName I get the following error: Transaction count after EXECUTE indicates a mismatching number of BEGIN and COMMIT statements. Previous count = 1, current …

  10. sql server - close/kill transaction - Stack Overflow

    I have this open transaction, according to DBCC OPENTRAN: Oldest active transaction: SPID (server process ID) : 54 UID (user ID) : -1 Name : UPDATE LSN ...