Results of trace 1204?

  • I ran dbcc traceon (1204) to get deadlock information and used

    dbcc tracestatus(-1) to ensure that it was enabled. I then used some statements found on this forum to successfully force a deadlock in Northwind. Then I turned off the trace flag with dbcc traceoff (1204). Where did the "report" go (i.e. the details of the deadlock)? I see the trace going on and off in the current SQL Server log, but nothing in between as I expected.

  • i was doing it by session. i'm going to try it by server (changing the startup parameter).

  • You have to run DBCC TRACEON in order to the other connections see the new trace flag.

    From BOL:

    DBCC TRACEON

    "...New connections into the server do not see any trace flags until a DBCC TRACEON statement is issued. Then, the connection will see all trace flags currently enabled in the server, even those enabled by another connection."

     

  • The 'report' of deadlock activity goes in the current SQL Server Errorlog. Regarding traceflags, see my article How to use trace flags in SQL Server 2000.

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply