INDEXKEY_PROPERTY
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
INDEXKEY_PROPERTY ( object_ID ,index_ID ,key_ID ,property )
Work example
Inspect a documented property of an indexed key column.
Use schema-qualified names and test missing and permission-hidden objects separately.
Check your work Use the correct object and index ids and handle absent metadata.
Open Microsoft Learn for full syntax, permissions, and details for your version.