Category: Deadlocks

How to Troubleshoot Blocking and Deadlocking with Scripts and Tools

When you need to find which queries are blocking other queries, your decision comes down to when the blocking happened. Is it happening now, recently, or coming up soon? During a live emergency, start with sp_WhoIsActive. Adam Machanic's excellent free sp_WhoIsActive replaces Activity Monitor, sp_who, and sp_who2, and it's way more powerful. The documentation is extensive -…

Read more about How to Troubleshoot Blocking and Deadlocking with Scripts and Tools 2 comments — Join the discussion
Performance Tuning

Index Tuning Week: Getting Blocking? Play “Hot or Not.”

This week, we're all about tuning indexes. So far, we've covered Brent's 5 and 5 Rule and The D.E.A.T.H. Method. Today, let's talk about reducing blocking and deadlocking. Normally, when we think about the causes of blocking or deadlocks, we use badly written queries that modify different tables in the wrong order, resulting in a Mexican…

Read more about Index Tuning Week: Getting Blocking? Play “Hot or Not.” 9 comments — Join the discussion