O'Reilly logo

SQL Server DMVs in Action: Better Queries with Dynamic Management Views by Ian W. Stirk

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 5. Further query improvements

 

This chapter covers
  • Identifying missing statistics and indexes
  • Identifying queries running slower than normal
  • Determining which SQL queries run over a given time period
  • Capturing the relationships between DMV snapshot deltas

 

The previous chapter discussed scripts that allow you to discover information about the worst queries and how you might improve them. I’d now like to discuss a series of scripts that are typically not explicitly concerned with finding the slowest or worst item but rather indicate possible areas of concern and as such deserve to be examined in further detail.

We’ll look at how to search the cached plans for details of missing statistics and missing indexes. Implementing these ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required