TYPE_ID
catalog lookup
What changes
- Input
- catalog metadata (object, column, index, file, database properties)
- Output or change
- id, name or property value
- Return type
- int
Syntax at a glance
TYPE_ID ( [ schema_name ] type_name )
Work example
Resolve a type name to its database-local identifier.
Use schema-qualified names and test missing and permission-hidden objects separately.
Check your work Null can mean a type is missing or hidden.
Open Microsoft Learn for full syntax, permissions, and details for your version.