2008-09-16 3 views
1

나는 단지 내가 소스 데이터베이스가 괜찮다고 이야기하고SQL 서버 : 열 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을 다시 실행하십시오.