Solved

How do I retrieve past queries that caused blocking

Posted on 2010-09-15
2
540 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
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
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.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

762 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

20 Experts available now in Live!

Get 1:1 Help Now