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 ...

Get SQL Server DMVs in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.