Solved

How do I retrieve past queries that caused blocking

Posted on 2010-09-15
2
546 Views
Last Modified: 2012-06-21
Today, our main SQL 2008 production server experienced major blocking that eventually resulted in serious timeouts for our application. We have Idera installed to monitor the server, but are not running the query monitor because of the excess load it would put on the server. Idera did track that there were about 120 blocked sessions that occurred at one point this morning. Unfortunately, by the time I ran my queries to view the blocked sessions, it finally cleared up. I am trying to find out what those queries were so we can find out what the root of the problem was.

One thing we do is we have transaction log backups that occur every 10 minutes. Is there any way we can capture what was in that transaction log and output it to a file that we can review? I just want to make sure this situation does not occur again.

Any assistance in this matter is greatly appreciated.

0
Comment
Question by:richecker
[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
2 Comments
 
LVL 3

Expert Comment

by:mnachu
ID: 33683474
You could look at the cached plans to see what queries were recently executed or updated. There is some DMV for it in SQL 2008.

-Nachi
0
 

Accepted Solution

by:
richecker earned 0 total points
ID: 33684467
Nevermind, I was able to find what I was looking for in Idera. In Idera, there is blocking history tracking and I was able to find the process that was blocking everything else. I just had to point back to a previous snapshot, and find the data.
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Long way back, we had to take help from third party tools in order to encrypt and decrypt data.  Gradually Microsoft understood the need for this feature and started to implement it by building functionality into SQL Server. Finally, with SQL 2008, …
How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

732 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