SQL Flow Field Guide

TYPE_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
sysname

Syntax at a glance

TYPE_NAME ( type_id )

Work example

Resolve a type identifier to its visible type name.

Use schema-qualified names and test missing and permission-hidden objects separately.

Check your work Use the correct database id when the type belongs outside the current database.

Open Microsoft Learn for full syntax, permissions, and details for your version.