Microsoft KB Archive/928956

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 18:34, 18 July 2020 by 3155ffGd (talk | contribs) (importing KB archive)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Knowledge Base


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

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 "Applies to" section.

MORE INFORMATION

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

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

Keywords: kberrmsg kbtshoot kbprb kbexpertiseadvanced kbsql2005setup KB928956