INDEXPROPERTY
catalog lookup
What changes
- Input
- catalog metadata (object, column, index, file, database properties)
- Output or change
- id, name or property value
- Return type
- int
Syntax at a glance
INDEXPROPERTY ( object_ID , index_or_statistics_name , property )
Work example
Read an index property for a visible table or view.
Use schema-qualified names and test missing and permission-hidden objects separately.
Check your work Check the returned property type and confirm the index belongs to the supplied object.
Open Microsoft Learn for full syntax, permissions, and details for your version.