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)]
public bool IsUnique { get; set; }

Property Value

Type: System.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 M:Microsoft.SqlServer.Managemetn.Smo.Index.Alter method. To change the property, the index must be rebuilt or re-created.

Return to top
Show: