sys.check_constraints (Transact-SQL)


THIS TOPIC APPLIES TO: yesSQL Server (starting with 2008)yesAzure SQL DatabaseyesAzure SQL Data Warehouse yesParallel Data Warehouse

Contains a row for each object that is a CHECK constraint, with sys.objects.type = 'C'.

Column nameData typeDescription
<Columns inherited from sys.objects>For a list of columns that this view inherits, see sys.objects (Transact-SQL).
is_disabledbitCHECK constraint is disabled.
is_not_for_replicationbitCHECK constraint was created with the NOT FOR REPLICATION option.
is_not_trustedbitCHECK constraint has not been verified by the system for all rows.
parent_column_idint0 indicates a table-level CHECK constraint.

Non-zero value indicates that this is a column-level CHECK constraint defined on the column with the specified ID value.
definitionnvarchar(max)SQL expression that defines this CHECK constraint.
uses_database_collationbit1 = The constraint definition depends on the default collation of the database for correct evaluation; otherwise, 0. Such a dependency prevents changing the database default collation.
is_system_namedbit1 = Name was generated by system.

0 = Name was supplied by the user.

The visibility of the metadata in catalog views is limited to securables that a user either owns or on which the user has been granted some permission. For more information, see Metadata Visibility Configuration.

Object Catalog Views (Transact-SQL)
Catalog Views (Transact-SQL)

Community Additions