BUG: Insert Through View May Cause Duplicated Identity ValueLast reviewed: October 21, 1997Article ID: Q164691 |
The information in this article applies to:
SYMPTOMSInserts performed through a view may generate duplicated identity values in the base table if SQL Server's 'open objects' is not configured high enough. If a table has a primary key or a unique index, the insert fails with either of the following errors:
2627 14 Violation of %s constraint '%.*s': Attempt to insert duplicate key in object '%.*s'. -or- 2601 14 Attempt to insert duplicate key row in object '%.*s' with unique index '%.*s'.The following message usually appears in SQL Server before the problem:
Warning: OPEN OBJECTS parameter may be too low attempt was made to free up descriptors in localdes() Run sp_configure to increase parameter value. WORKAROUNDTo work around this problem, use sp_configure to increase 'open objects' (see the documentation on DBCC MEMUSAGE to find the memory overhead of each 'open object').
STATUSMicrosoft has confirmed this to be a problem in Microsoft SQL Server version 6.5. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
|
Additional query words: repeat same already exist key
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |