This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.
The EnumStatistics method returns a QueryResults object that enumerates index statistics used to support Microsoft SQL Server query optimization.
A QueryResults object that contains three result sets. The first result set describes index statistics structure and age and is defined by these columns.
Average key length
Average length of an index row.
Selectivity of the index.
Number of rows in the table.
Number of rows sampled for statistics data.
Number of distribution steps.
Date and time of most recent update.
The second result set describes index density and is defined by these columns.
Selectivity of the column(s) listed in Columns.
Column(s) participating in index.
The third result set enumerates histogram values and is defined by these columns.
Histogram values in the current distribution statistics.