About 867,000 results
Open links in new tab
  1. BEGIN TRANSACTION (Transact-SQL) - SQL Server | Microsoft Learn

    Nov 18, 2025 · Marks the starting point of an explicit, local transaction. Explicit transactions start with the BEGIN TRANSACTION statement and end with the COMMIT or ROLLBACK statement.

  2. What does BEGIN TRAN, ROLLBACK TRAN, and COMMIT TRAN

    Apr 22, 2025 · If you were to add BEGIN TRANSACTION (or BEGIN TRAN) before the statement, it automatically makes the transaction explicit and holds a lock on the table until the …

  3. Correct use of transactions in SQL Server - Stack Overflow

    Apr 14, 2012 · If one wants a "visually nested syntax" so to say, i.e. such that begin transaction is nested under begin try, then a condition should be added before rollback transaction, which is: …

  4. SQL BEGIN TRANSACTION

    The BEGIN TRANSACTION statement is used to start a new transaction. It indicates the beginning of a sequence of SQL statements that are treated as a single unit of work.

  5. Mastering the BEGIN TRANSACTION Statement in SQL: A Deep …

    What Is the BEGIN TRANSACTION Statement? The BEGIN TRANSACTION statement marks the start of a transaction, a sequence of SQL operations treated as a single unit. Think of it as …

  6. sql server - Multiple UPDATE and INSERT statements using BEGIN TRAN

    Apr 7, 2025 · In my script, I've initialized a table variable DECLARE @cust_debugger TABLE (exec_checker VARCHAR(50)); and it is temporarily implemented in my script to debug my …

  7. SQL Server Transaction - GeeksforGeeks

    Jan 25, 2024 · A transaction begins with BEGIN TRANSACTION and ends with either COMMIT or ROLLBACK. When all statements inside the TRANSACTION block execute successfully, then …

  8. SQL Server BEGIN/END vs BEGIN TRANS/COMMIT/ROLLBACK

    Feb 10, 2016 · BEGIN TRAN, COMMIT, and ROLLBACK begin and end transactions. They do not specify a new block of code; they only mark the transaction boundaries. Note that you can …

  9. T-SQL Transaction Statements syntax and example

    A T-SQL transaction is a single logical unit of work and it is composed of several SQL Server statements. The transaction begins with the first SQL Server statement executed and ends …

  10. BEGIN DISTRIBUTED TRANSACTION (Transact-SQL) - SQL Server

    Sep 3, 2024 · Specifies the start of a Transact-SQL distributed transaction. When using SQL Server the distributed transaction is managed by Microsoft Distributed Transaction Coordinator …