Difference between Implicit and Explicit Transaction

后端 未结 4 1933
长情又很酷
长情又很酷 2020-12-09 10:06

What is the difference between Implicit and Explicit transaction in Sql Server 2008?

What happens in TransactionScope background? I\'m using TransactionScope but in

4条回答
  •  余生分开走
    2020-12-09 10:43

    SqlTransaction - which TransactionScope uses under the covers - only sends T-SQL BEGIN TRANSACTION commands for SQL Server 2000 and earlier.

    For SQL Server 2005 and later, the TDS protocol was extended to allow clients to directly manipulate transactions without sending BEGIN TRANSACTION etc. To see these in the Profiler, select the 'TM: Begin Tran starting' events, etc. You will probably need to check the 'Show all events' checkbox to see these events - they are under the Transactions category.

    See Transaction Manager Request in the TDS protocol documentation, TM: Begin Tran Starting Event Class in the Profiler documentation, and SqlInternalTransaction.ExecuteTransactionYukon in the .NET Reference Source.

提交回复
热议问题