Export (0) Print
Expand All
Expand Minimize

Index.IgnoreDuplicateKeys Property

Gets or sets the Boolean property value that specifies whether the index ignores duplicate keys.

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

'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase Or SfcPropertyFlags.Design Or SfcPropertyFlags.Deploy Or SfcPropertyFlags.Matrix)> _
Public Property IgnoreDuplicateKeys As Boolean 
	Get 
	Set
'Usage
Dim instance As Index 
Dim value As Boolean 

value = instance.IgnoreDuplicateKeys

instance.IgnoreDuplicateKeys = value

Property Value

Type: Boolean
A Boolean value that specifies whether the index ignores duplicate keys. If True, the index ignores duplicate keys. Otherwise, False (default).

This property controls error generation when an INSERT or UPDATE statement causes a constraint violation because there is a UNIQUE or PRIMARY KEY constraint implemented on the index.

Community Additions

ADD
Show:
© 2014 Microsoft