TransactionScope, where is begin transaction on sql profiler?

后端 未结 1 646
情话喂你
情话喂你 2021-01-04 02:53

i need to do something like this on a transaction context

using(var context = new Ctx())
{

using (TransactionScope tran = new TransactionScope())
{
    deci         


        
相关标签:
1条回答
  • Like @Marc said in his comment, the messages are probably being filtered out. You would only be picking up T-SQL transaction messages in the default profile, not transaction messages that are sent using the API directly (as TransactionScope does).

    In SQL Server Profiler, go to the trace event selection and check the "Show All Events" checkbox. Down at the bottom is a "Transactions" category, and it should give you what you need. Specifically, the events starting with TM:.

    0 讨论(0)
提交回复
热议问题