BUG: BOL Incorrectly States That IGNORE_DUP_KEY Affects UPDATE Statements (301113)
The information in this article applies to:
- Microsoft SQL Server 2000 (all editions)
This article was previously published under Q301113
BUG #: 354426 (SHILOH_BUGS)
SYMPTOMS
The "Creating a Unique Index" section of SQL Server Books Online (BOL) incorrectly states that the IGNORE_DUP_KEY option can affect UPDATE statements:
"When you create or modify a unique index, you can set an option to ignore
duplicate keys. If this option is set and you attempt to create duplicate
keys by adding or updating data that affects multiple rows (with the INSERT
or UPDATE statement), the row that causes the duplicates is not added or,
in the case of an update, discarded."
This is incorrect. If you attempt an UPDATE statement that would result in duplicate rows, the entire UPDATE statement will be rolled back.
STATUS
Microsoft has confirmed this to be a problem in the SQL Server 2000 documentation.
Modification Type: | Major | Last Reviewed: | 10/3/2003 |
---|
Keywords: | kbbug kbpending KB301113 |
---|
|