Skip to content

Latest commit

 

History

History
51 lines (45 loc) · 2.68 KB

File metadata and controls

51 lines (45 loc) · 2.68 KB

title: "sys.check_constraints (Transact-SQL) | Microsoft Docs" ms.custom: "" ms.date: "06/28/2017" ms.prod: sql ms.prod_service: "database-engine, sql-database" ms.component: "system-catalog-views" ms.reviewer: "" ms.suite: "sql" ms.technology: system-objects ms.tgt_pltfrm: "" ms.topic: "language-reference" f1_keywords:

  • "sys.check_constraints"
  • "sys.check_constraints_TSQL"
  • "check_constraints_TSQL"
  • "check_constraints" dev_langs:
  • "TSQL" helpviewer_keywords:
  • "sys.check_constraints catalog view" ms.assetid: 940ebc5e-44ba-4dae-8b29-da94f2d1d6c4 author: VanMSFT ms.author: vanto manager: craigg monikerRange: "=azuresqldb-current||>=sql-server-2016||=sqlallproducts-allversions||>=sql-server-linux-2017"

sys.check_constraints (Transact-SQL)

[!INCLUDEtsql-appliesto-ss2008-asdb-xxxx-xxx-md]

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

Column name Data type Description
<Columns inherited from sys.objects> For a list of columns that this view inherits, see sys.objects (Transact-SQL).
is_disabled bit CHECK constraint is disabled.
is_not_for_replication bit CHECK constraint was created with the NOT FOR REPLICATION option.
is_not_trusted bit CHECK constraint has not been verified by the system for all rows.
parent_column_id int 0 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.
definition nvarchar(max) SQL expression that defines this CHECK constraint.
uses_database_collation bit 1 = 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_named bit 1 = Name was generated by system.

0 = Name was supplied by the user.

Permissions

[!INCLUDEssCatViewPerm] For more information, see Metadata Visibility Configuration.

See Also

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