Export (0) Print
Expand All
Expand Minimize

Index.IsUnique Property

Gets or sets the Boolean property value that specifies whether the index is unique or not.

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

[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design|SfcPropertyFlags.Deploy|SfcPropertyFlags.Matrix)]
public bool IsUnique { get; set; }

Property Value

Type: Boolean
A Boolean value that specifies whether the index is unique or not.If True, the index is unique.If False (default), the index is not unique.

This property cannot be modified by using the Alter method. To change the property, the index must be rebuilt or re-created.

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

Community Additions

ADD
Show:
© 2014 Microsoft