Solved

Tracing Lock:Timeout in SQL Server

Posted on 2008-06-10
13
1,597 Views
Last Modified: 2012-06-21
Dear Experts,

I have a trace file for LOCKS on a database, but i need to see the data under TextData event as well to see which sql is being executed during the Lock:timeout event. is it true that if i trace for the Locks?

Basixally i need to trace if there are any locks occuring and which SQL is being executed during the locking and by which application/login.

Also, i see
"Microsft(R) Windows (R) 2000 Operating System"  and
".Net sqlClient Data Provider"
under the ApplicationName for an EventClass Lock:Timeout.
What does does this really mean? is it the OS and Client being used by whatever aapplication is running on?

Please help!
0
Comment
Question by:crishna1
  • 6
  • 5
13 Comments
 
LVL 60

Accepted Solution

by:
chapmandew earned 500 total points
ID: 21752866
Locks are always occurring in SQL Server.  If you want to see other procedures that are running at the time...select the SP:Completed event as well...also include the ObjectName in the output field list.
0
 

Author Comment

by:crishna1
ID: 21753833
thats true, but i am looking for anything that has Lock:Timeout and Lock:Deadlock and corresponding Textdata i.e sql.
0
 
LVL 60

Assisted Solution

by:chapmandew
chapmandew earned 500 total points
ID: 21753857
right...anything executing around the time of those errors should correspond with them.  

also, for tracking deadlocks, you can use the sqldiag tool.
http://articles.techrepublic.com.com/5100-10878_11-6116287.html
0
 

Author Comment

by:crishna1
ID: 21753941
also like i mentioned in my original question, what about these?

"Microsft(R) Windows (R) 2000 Operating System"  and
".Net sqlClient Data Provider"
0
 
LVL 60

Expert Comment

by:chapmandew
ID: 21753952
tells you the OS and the type of connection made.
0
Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

 

Author Comment

by:crishna1
ID: 21754211
they all are under the same column, Applicationname. how can it be OS and type of connection?
0
 

Author Comment

by:crishna1
ID: 21754457
How do get the TextData also traced while tracing for Deadlock, Timeout? see attachment.

0
 
LVL 60

Expert Comment

by:chapmandew
ID: 21754481
I don't see an attachment...
0
 

Author Comment

by:crishna1
ID: 21754557
some reason i am unable to attach the file, but the question is "How do get the TextData also traced while tracing for Deadlock, Timeout?"
0
 
LVL 60

Expert Comment

by:chapmandew
ID: 21754712
what do you mean?  are you trying to set criteria on the textdata column, or you just can't see it?
0
 

Author Comment

by:crishna1
ID: 21795899
yes , how to set criteria on text data column while tracing for Deadlock, Timeout?
a screen shot will be helpful , if possible.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now