Hi,
I have the following problem:
In the tables sys.key_constraints and sys.default_constraints i have a few corrupted records.
The records have a parent_object_id that doesn't exists anymore.
So I can't use "alter table", "drop index" or "drop contraint" because the "table" is not present (anymore) in the database.
Problem: a table is dropped and now i want to create it again. The create fails because the primairykeyname already exists in sys.key_contraints. (The dropping and creating is part of a replicationproces). How can I delete the corrupt records from the two tables?
(A delete-statement gives: Ad hoc updates to system catalogs are not allowed. )
DBCC CHECKDB gives:
CHECKDB found 0 allocation errors and 0 consistency errors in database 'xxxxxxx'
Can anybody help me?
Dik Helleman, The Netherlands
(ps: it is sql2005)