Partilhar via


sys.key_constraints (Transact-SQL)

Contains a row for each object that is a primary key or unique constraint. Includes sys.objects.type PK and UQ.

Column name Data type Description

<Columns inherited from sys.objects>

 

For a list of columns that this view inherits, see sys.objects (Transact-SQL).

unique_index_id

int

ID of the corresponding unique index in the parent object that was created to enforce this constraint.

is_system_named

bit

1 = Name was generated by system.

0 = Name was supplied by the user.

See Also

Reference

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

Other Resources

Querying the SQL Server System Catalog FAQ

Help and Information

Getting SQL Server 2005 Assistance