June 11, 2013 at 11:21 am
Hi All,
2days ago we have a dead lock.
how to find out, for what cause the dead lock got occured?
June 11, 2013 at 4:32 pm
AAKR (6/11/2013)
Hi All,2days ago we have a dead lock.
how to find out, for what cause the dead lock got occured?
How do you know you had a deadlock 2 days ago?
--Jeff Moden
Change is inevitable... Change for the better is not.
June 12, 2013 at 9:26 am
You seem to know THAT and also WHEN you had a deadlock.
Active the trace flag 1222 on the server. If a deadlock occurs you can find a lot of useful information about the deadlock. If you know the time it occurs just have a look the sql server log at this time and get your information.
June 12, 2013 at 11:41 am
That's the reason for my question about how does the OP know if they've had a deadlock. I don't believe they'd be asking if they knew about either TF 1222 or 1205. Some reports of deadlocks do include tracable info and wanted to know where they got the deadlock notification from.
--Jeff Moden
Change is inevitable... Change for the better is not.
June 12, 2013 at 11:58 am
You could either have a look at the sql server log, that contains the information THAT a deadlock occurs.
In our system, for example, the applicaton writes any exception into a trace table, that is controlled daily, and it also includes the deadlock-message.
So in our case we know THAT a deadlock occured and when and then we have to think about how to get the details. I guess this thread is quite similar...
June 14, 2013 at 2:34 am
Since you're on SQL Server 2008, you don't actually have to rely on the traceflags any more. The system_health extended event session will record deadlock graphs that will allow you to go and capture that information. It's running even if you have not enabled the traceflags. I would just use that and skip the traceflags entirely.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply