APP_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
APP_NAME ( )
Work example
Read the client application name reported for the current session.
Use schema-qualified names and test missing and permission-hidden objects separately.
Check your work Treat it as client-supplied diagnostic text and never as an authorization check.
Open Microsoft Learn for full syntax, permissions, and details for your version.