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

IndexKeyType Enumeration

The IndexKeyType enumeration contains values that are used to specify the type of key on which the index is created.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.SqlEnum (in Microsoft.SqlServer.SqlEnum.dll)

public enum IndexKeyType

Member nameDescription
DriPrimaryKeyThe index implements a SQL Server PRIMARY KEY constraint.
DriUniqueKeyThe index implements a UNIQUE constraint on a table not constrained by a primary key. The index is a candidate key.
NoneThe index is based on a column with no key constraint.

The IndexKeyType enumeration class is served by the IndexKeyType property.

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

Community Additions

© 2015 Microsoft