Microsoft® SQL Server® 2008 Internals
by Paul Randal Kalen Delaney Kimberly Tripp, and Conor Cunningham
Tools for Analyzing Indexes
To expose and understand index structures fully, there are a few tools that we’re going to use. To make the scenarios easier to understand, we need to get a feel for which tool is the most appropriate to use and when. In addition, this section focuses on an overview of the options for execution, as well as some tips and tricks. However, details on analyzing various aspects of the output can be found throughout this chapter.
Using the dm_db_index_physical_stats DMV
The sys.dm_db_index_physical_stats function is one of the most useful functions to determine table structures. This DMV can give you insight into whether or not your table has a clustered index, how many nonclustered indexes exist, and whether or not your table ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access