Re: How can I create report after 1024 flag detect a deadlock?

From: Hari Prasad (hari_prasad_k_at_hotmail.com)
Date: 08/15/04


Date: Sun, 15 Aug 2004 18:05:12 +0530

Hi,

The trace flag to report deadlock is 1204, not 1024. Once you enable to
trace flag 1204 , automatically the deadlock information will send to
SQL server error log.

See the below link to get the details of trace flags and usage.

http://www.mssqlcity.com/Articles/General/SQL2000TF.htm

See the below site to enable the server side tracing:-

http://vyaskn.tripod.com/server_side_tracing_in_sql_server.htm

Thanks
Hari
MCDBA"Imre Ament" <Imre Ament@discussions.microsoft.com> wrote in message
news:40FCC6C4-F100-4C68-97D7-632788D4D5F6@microsoft.com...
> Hi!
>
> I am hunting for a deadlock and use SQL profiler and found the object that
> was deadlocked. To gain more detailed information from the deadlock I set
the
> 1024 flag on the server. How can I create the report what the SQL Server
> Books OnLine refer. Where write this information the SQL server 2000 (into
> error log?).
>
> Regards,
> Imre



Relevant Pages

  • Re: identifying deadlock conditions
    ... Is there any other way to enable the Trace flag 1204 ... Note:- You can also give the same usign SQL server enterprise manager ... "Deadlock" event in the trace file, ...
    (microsoft.public.sqlserver.server)
  • Re: trace 1204
    ... you can turn on trace flag 3605 so that the deadlock ... diagnostics are written to the SQL Server error log. ...
    (microsoft.public.sqlserver.programming)
  • Re: Trace Flag 1204
    ... OK Greg - so, more specifically, I have a test system that, every now and ... However, it doesn't give the entire output that trace flag 1204 would give, ... 1204, likely for some time, until this deadlock occurs, in order to find out ... I am wondering specifically if the performance of the SQL Server will ...
    (microsoft.public.sqlserver.server)
  • Re: Trace Flag 1204
    ... Trace flag 1204 is used to troubleshoot deadlock. ... Generally I would use it to resolve ... It surely has some impact on the SQL Server performance. ...
    (microsoft.public.sqlserver.server)
  • Re: Database is not starting up
    ... I did remove the trace flag and I am positive that I followed the same ... databases, and they were attached. ... and then restart SQL Server. ... Stop and then restart SQL Server. ...
    (microsoft.public.sqlserver.server)

Loading