December 29, 2008 at 4:15 am
Hi,
I am working on a SQL job which generally fails once in two weeks (approx.). the job is running in SQL server 2000.while opening the sql profiler i can see only deadlock and deadlock chain options under lock of event class.but i need to add the deadlock graph option to trace out the deadlock.
could any one please suggest me the way to add the deadlock graph option in event class of sql server 2000 ?
Thanks ,
Nivedita
December 29, 2008 at 4:21 am
nivedita.kathal (12/29/2008)
Hi,I am working on a SQL job which generally fails once in two weeks (approx.). the job is running in SQL server 2000.while opening the sql profiler i can see only deadlock and deadlock chain options under lock of event class.but i need to add the deadlock graph option to trace out the deadlock.
could any one please suggest me the way to add the deadlock graph option in event class of sql server 2000 ?
Thanks ,
Nivedita
Deadlock graph as an event class is only availbale in SQL 2005 or higher. All you can do in SQL 2000 is enabling trace flag 1204, to capture the deadlock information in the SQL Errorlog.
[font="Verdana"]Markus Bohse[/font]
December 29, 2008 at 5:26 am
Hi Markus,
I am very new to SQL profiler and i don't know whether i need to run the "DBCC TRACEON (1204)" statement in the SQL profiler in query analyzer or in command prompt(To the to switch on the flag).
December 29, 2008 at 5:36 am
i don't know whether i need to run the "DBCC TRACEON (1204)" statement in the SQL profiler in query analyzer or in command prompt(To the to switch on the flag).
Query Analyzer
December 29, 2008 at 7:56 am
Alos you need to enable the traceflag globally. If you just do TRACEON(1204) then it's only active for that session, which means you'll never see a deadlock graph as it's the system processes that catch deadlocks.
DBCC TRACEON (1204,-1)
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
December 30, 2008 at 1:17 am
Hi Markus,
Thanks, Now i am able to trace out the deadlock through errorlogs.
December 30, 2008 at 1:52 am
The DBCC TRACEON (1204,-1) statement is not showing the information about the deadlock.
but through DBCC TRACEON (3605,1204) we can trace the information related to the deadlock.
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply