Solved

Tracing Lock:Timeout in SQL Server

Posted on 2008-06-10
13
1,613 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 

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
 

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
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.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

856 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