Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize

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).



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



1 = Name was generated by system.

0 = Name was supplied by the user.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft