FILE_NAME
catalog lookup
What changes
- Input
- catalog metadata (object, column, index, file, database properties)
- Output or change
- id, name or property value
- Return type
- nvarchar(128)
Syntax at a glance
FILE_NAME ( file_id )
Work example
Resolve a database file id to its logical file name.
Use schema-qualified names and test missing and permission-hidden objects separately.
Check your work Do not present a logical name as a physical storage path.
Open Microsoft Learn for full syntax, permissions, and details for your version.