Re: SQL Profiler / DBCC Traceon (1204)

From: Russell Fields (RussellFields_at_NoMailPlease.Com)
Date: 03/01/04


Date: Mon, 1 Mar 2004 15:05:07 -0500

Dan,

No. That would already be too late.

However, you could have a SQL Trace running (the server side of what SQL
Profiler displays) that traces ONLY deadlocks. Then, when one arose you
could get the info. Some small overhead on your server, but the 1204 trace
also adds some small overhead. (IIRC)

Russell Fields
"Dan" <anonymous@discussions.microsoft.com> wrote in message
news:4a9201c3ffc0$ee960a40$a501280a@phx.gbl...
>
> Presently I have my SQL Server set with DBCC Traceon (1204)
> to collect deadlock information. I would like to collect
> detail information on each deadlock. Is there away to
> have SQL Profiler start on a deadlock and collect detail
> information?
>
> Thank You,
>
> Dan



Relevant Pages

  • Re: User and Login auditing
    ... I agree 100% with Sue on not touching the system tables. ... > and hope that your employer doesn't mind you putting the SQL ... > Server box in this position. ... You could put triggers on your trace table. ...
    (microsoft.public.sqlserver.security)
  • Re: Problem with SQL Server [Solution]
    ... Apparently my sql server was not set to mixed mode authentication. ... > with the Trace Properties. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: URGENT deadlock question
    ... I have a deadlock template that I use with the following ... > SQL: Statement Completed ... > "Trace flags remain enabled in the server until disabled by executing ...
    (microsoft.public.sqlserver.server)
  • Re: SQL 7 Traces
    ... Profiler 2K can generate the xp calls for a defined trace in 7 format. ... Tibor Karaszi, SQL Server MVP ...
    (microsoft.public.sqlserver.programming)
  • Re: Analyzing Error log with Trace Flag 1204 turned on
    ... I have read the appropriate section out of Inside SQL ... up to a deadlock only from the spids involved in the deadlock? ... > resources in Inside SQL Server 2000, and in my ebook on Troubleshooting ... Are they locks currently held or ...
    (microsoft.public.sqlserver.server)