Microsoft KB Archive/928956

= Error message when you try to upgrade from SQL Server 2000 to SQL Server 2005: &quot;Cannot insert duplicate key row in object 'dbo.syscategories' with unique index 'clust'&quot; =

Article ID: 928956

Article Last Modified on 11/20/2007

-

APPLIES TO


 * Microsoft SQL Server 2005 Developer Edition
 * Microsoft SQL Server 2005 Enterprise Edition
 * Microsoft SQL Server 2005 Enterprise Edition for Itanium-based Systems
 * Microsoft SQL Server 2005 Enterprise X64 Edition
 * Microsoft SQL Server 2005 Standard X64 Edition
 * Microsoft SQL Server 2005 Standard Edition
 * Microsoft SQL Server 2005 Standard Edition for Itanium-based Systems

-



SYMPTOMS
When you try to upgrade from Microsoft SQL Server 2000 to Microsoft SQL Server 2005, you may receive an error message that resembles the following:

Msg 2601, Level 14, State 1, Line 1

Cannot insert duplicate key row in object 'dbo.syscategories' with unique index 'clust'.

The statement has been terminated.



CAUSE
This problem occurs if the Msdb.dbo.syscategories table has an existing Log Shipping entry in the Name column.



WORKAROUND
To work around this problem, delete or modify the Log Shipping entry in the Msdb.dbo.syscategories table before you try to upgrade to SQL Server 2005.

The following code example illustrates how to use the UPDATE statement to modify the entry. use msdb GO UPDATE dbo.syscategories SET Name = 'Old_Log_Shipping' WHERE Name = 'Log Shipping' GO



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.



MORE INFORMATION
For more information about how to upgrade to SQL Server 2005, visit the following Microsoft Developer Network (MSDN) Web site:

http://msdn2.microsoft.com/en-us/library/ms144245.aspx

For more information about how to use the Transact-SQL UPDATE statement, visit the following MSDN Web site:

http://msdn2.microsoft.com/en-us/library/ms177523.aspx

Keywords: kberrmsg kbtshoot kbprb kbexpertiseadvanced kbsql2005setup KB928956

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.