BUG: Alter Table May Fail to Create Primary Key ConstraintID: Q136110
|
If an ALTER TABLE statement that adds a primary key constraint fails with
an error 1750:
Unable to create constraint. See previous errors.
Cannot create more than one clustered index on table '...'.
Drop existing clustered index '1' before creating another.
Could not find row in Sysindexes for dbid '5', object '...', index '..'
Run DBCC CHECKTABLE on Sysindexes. The SQL Server is terminating this
process.
SQL Server maintains a structure that is used to manage objects
accessed by processes within the server. For additional information, please
see the following article in the Microsoft Knowledge Base:
Q114843 : INF: Explanation of Open Objects
You can correct the problem by stopping and restarting SQL Server, which will re-initialize the open object structure for the table. Otherwise, you can drop and recreate the table.
Microsoft has confirmed this to be a problem in Microsoft SQL Server version 6.0. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
Additional query words: sql6 ref int
Keywords : kbprg SSrvProg SSrvTran_SQL kbbug6.00
Version : 6.0 6.0.121
Platform : WINDOWS
Issue type :
Last Reviewed: April 19, 1999