FILE_IDEX
catalog lookup
What changes
- Input
- catalog metadata (object, column, index, file, database properties)
- Output or change
- id, name or property value
- Return type
- int NULL on error
Syntax at a glance
FILE_IDEX ( file_name )
Work example
Resolve a database file identifier through the extended lookup.
Use schema-qualified names and test missing and permission-hidden objects separately.
Check your work Check file visibility and target version before using it in tooling.
Open Microsoft Learn for full syntax, permissions, and details for your version.