SQL Flow Field Guide

APP_NAME

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

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.