Blog Pages

OBJECTPROPERTY - information about schema-scoped objects in SQL Server

OBJECTPROPERTY (ObjectId, PropertyName)

Returns information about schema-scoped objects in the current database.

See the properties list in:
See the schema-scoped objects list in:


Examples:
SELECT OBJECTPROPERTY(OBJECT_ID, N'IsIndexed')
SELECT OBJECTPROPERTY(object_id, N'SchemaId')

No comments:

Post a Comment