2008-09-16 13 views
1

私だけSQL Serverの:列のNULL可能矛盾

Restore Database The_DB_Name 
From Disk = 'C:\etc\etc' 
With Continue_After_Error 

を使用して回復することができたSQL Server 2005のデータベースを持っている私は、ソース・データベースが大丈夫だった聞いています。復元レポート

Warning: A column nullability inconsistency was detected in the metadata of index "IDX_Comp_CompanyId" (index_id = 2) on object ID nnnnn in database "The_DB_Name". The index may be corrupt. Run DBCC CHECKTABLE to verify consistency.

DBCC CHECKTABLE (Company) 

Msg 8967, Level 16, State 216, Line 1 An internal error occurred in DBCC that prevented further processing. Contact Customer Support Services.

Msg 8921, Level 16, State 1, Line 1
Check terminated. A failure was detected while collecting facts. Possibly tempdb out of space or a system table is inconsistent. Check previous errors.

Alter Index IDX_Comp_CompanyId On dbo.Company 
Rebuild 

が私に与え与え

Msg 824, Level 24, State 2, Line 1
SQL Server detected a logical consistency-based I/O error: incorrect pageid (expected 1:77467; actual 45:2097184). It occurred during a read of page (1:77467) in database ID 20 at offset 0x00000025d36000 in file 'C:\etc\etc.mdf'. Additional messages in the SQL Server error log or system event log may provide more detail. This is a severe error condition that threatens database integrity and must be corrected immediately. Complete a full database consistency check (DBCC CHECKDB). This error can be caused by many factors; for more information, see SQL Server Books Online.

どのくらいのトラブルに私のですか?

答えて

3

索引の破損は、索引の再構築が可能なため、基本表の破損ほど悪くありません。

ソースデータベースと宛先データベース間のテーブルとインデックスの定義を比較します。 両方のサーバーのバージョンも確認してください。 (サーバーに復元するとバックアップが自動的にアップグレードされました) インデックスを削除して再作成し、CheckTableを再実行します。