About 52 results
Open links in new tab
  1. What is the difference between a query and transaction in SQL?

    Apr 23, 2021 · The three key operations on a transactions are: BEGIN TRANSACTION: Tell the database that a transaction is beginning. All changes within the transaction are invisible to other …

  2. What does a transaction around a single statement do?

    BEGIN TRANSACTION / COMMIT "extends" this locking functionality to the work done by multiple statements, but it adds nothing to single statements. However, the database transaction log is …

  3. t sql - When to use Transactions in SQL Server - Stack Overflow

    When is an appropriate time to use a Transaction? As a follow-up question, if I use them, how can I use them in such a way as to ONLY prevent other SPs from accessing the same data at the same time in …

  4. 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...

  5. Nested transactions in Sql Server - Stack Overflow

    Jul 27, 2013 · Imagine the following scenario: I am using SQL Server 2005. I have a transaction that is calling, among other SQL statements, a stored procedure that also has a transaction inside. The …

  6. How do I use transaction with oracle SQL? - Stack Overflow

    Feb 3, 2016 · I am trying to use transaction blocks on a SQL-Console with an Oracle DB. I'm used to use transaxction blocks in PostgreSQL like BEGIN; <simple sql statement> END; but in oracle it …

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

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

  8. writing a transaction in t-sql and error handling - Stack Overflow

    Apr 6, 2017 · Do u think there is a better way to write a transaction in t-sql? Is there a better approach that improves maintainability and performance of the application that uses this transaction? -- Descri...

  9. 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:

  10. concurrency - What is a database transaction? - Stack Overflow

    May 1, 2023 · A transaction is a unit of work that you want to treat as "a whole." It has to either happen in full or not at all. A classical example is transferring money from one bank account to another. To …