TABLE_CONSTRAINTS (T-SQL)

Contains one row for each table constraint owned by the current user in the current database. The INFORMATION_SCHEMA.TABLE_CONSTRAINTS view is based on the sysobjects system table.

To retrieve information from these views, specify the fully qualified name of INFORMATION_SCHEMA view_name.

Column name Data type Description
CONSTRAINT_CATALOG nvarchar(128) Constraint qualifier.
CONSTRAINT_SCHEMA nvarchar(128) Constraint owner.
CONSTRAINT_NAME sysname Constraint name.
TABLE_CATALOG nvarchar(128) Table qualifier.
TABLE_SCHEMA nvarchar(128) Table owner.
TABLE_NAME sysname Table name.
CONSTRAINT_TYPE varchar(11) Type of constraint. Can be either CHECK, UNIQUE, PRIMARY KEY, or FOREIGN KEY.
IS_DEFERRABLE varchar(2) Specifies whether constraint checking is deferrable. Always returns NO.
INITIALLY_DEFERRED varchar(2) Specifies whether constraint checking is initially deferred. Always returns NO.

See Also
sysobjects  

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.