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:
property bool IsUnique {
	bool get ();
	void set (bool value);
}

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.

Community Additions

ADD
Show:
© 2014 Microsoft