sys.stats_columns (Transact-SQL)


THIS TOPIC APPLIES TO: yesSQL Server (starting with 2008)yesAzure SQL DatabaseyesAzure SQL Data Warehouse yesParallel Data Warehouse

Contains a row for each column that is part of sys.stats statistics.

Column nameData typeDescription
object_idintID of the object of which this column is part.
stats_idintID of the statistics of which this column is part.
stats_column_idint1-based ordinal within set of stats columns.
column_idintID of the column from sys.columns.

The visibility of the metadata in catalog views is limited to securables that a user either owns or on which the user has been granted some permission. For more information, see Metadata Visibility Configuration.

Object Catalog Views (Transact-SQL)
Catalog Views (Transact-SQL)
Querying the SQL Server System Catalog FAQ
sys.stats (Transact-SQL)

Community Additions