SQL Flow Field Guide

OBJECTPROPERTYEX

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
sql_variant

Syntax at a glance

OBJECTPROPERTYEX ( id , property )

Work example

Inspect a documented property of a database object with a broader result type.

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

Check your work Qualify the object and validate the property and returned variant.

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