MV_PROSPECTIVE_HISTOGRAMS

This view contains information about columns which were used in queries where a histogram could have been utilized, but did not have histograms.

This view counts over all queries (rows) in the in-memory plancache in order to distinguish which of these contain applicable columns. This can be useful for examining which columns included in these queries should have autostats enabled for the future. See further information about this, and how to set autostats in Statistics and Sampling Tasks.

Column Name

Description

DATABASE_NAME

The name of the related database.

TABLE_NAME

The name of the related table.

COLUMN_NAME

The name of a given column for which a prospective histogram has been identified.

USAGE_COUNT

The number of times the column was used in queries where a histogram could have been utilized, counting once per query per occurrence of the table.

Last modified: January 5, 2024

Was this article helpful?