DBCC SHOW_STATISTICS
returns statistics
What changes
- Input
- statistics object
- Output or change
- result sets (header, density vector, histogram)
Syntax at a glance
DBCC SHOW_STATISTICS ( table_or_indexed_view_name , target ) [ WITH [ NO_INFOMSGS ] < option > [ , ...n ] ]
Work example
A plan review needs the histogram for one named statistic.
Compare last update, sample size, histogram steps, and the query's predicate value.
Check your work The observed estimate can be traced to the displayed histogram range.
Open Microsoft Learn for full syntax, permissions, and details for your version.