Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

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)
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design|SfcPropertyFlags.Deploy)]
public bool IgnoreDuplicateKeys { get; set; }

Property Value

Type: System.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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.