Solved

Tracing Lock:Timeout in SQL Server

Posted on 2008-06-10
13
1,590 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
tells you the OS and the type of connection made.
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

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

Author Comment

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

0
 
LVL 60

Expert Comment

by:chapmandew
Comment Utility
I don't see an attachment...
0
 

Author Comment

by:crishna1
Comment Utility
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
Comment Utility
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
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

772 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

14 Experts available now in Live!

Get 1:1 Help Now