[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Tracing Lock:Timeout in SQL Server

Posted on 2008-06-10
13
Medium Priority
?
1,682 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 5
13 Comments
 
LVL 60

Accepted Solution

by:
chapmandew earned 2000 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 2000 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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

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

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

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.
This month, Experts Exchange sat down with resident SQL expert, Jim Horn, for an in-depth look into the makings of a successful career in SQL.
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.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

656 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