2016-08-19 73 views
0

我跑了CHECKDB和它吐出以下錯誤修復DBCC CHECKDB錯誤

Msg 8928, Level 16, State 1, Line 1 
Object ID 302676176, index ID 1, partition ID 72057594076135424, alloc unit ID 72057594090225664 (type In-row data): Page (1:262631) could not be processed. See other errors for details. 
Msg 8976, Level 16, State 1, Line 1 
Table error: Object ID 302676176, index ID 1, partition ID 72057594076135424, alloc unit ID 72057594090225664 (type In-row data). Page (1:262631) was not seen in the scan although its parent (1:263401) and previous (1:262630) refer to it. Check any previous errors. 
Msg 8944, Level 16, State 13, Line 1 
Table error: Object ID 302676176, index ID 1, partition ID 72057594076135424, alloc unit ID 72057594090225664 (type In-row data), page (1:262631), row 95. Test (ColumnOffsets <= (nextRec - pRec)) failed. Values are 1730 and 45. 
Msg 8944, Level 16, State 13, Line 1 
Table error: Object ID 302676176, index ID 1, partition ID 72057594076135424, alloc unit ID 72057594090225664 (type In-row data), page (1:262631), row 95. Test (ColumnOffsets <= (nextRec - pRec)) failed. Values are 1730 and 45. 
Msg 8978, Level 16, State 1, Line 1 
Table error: Object ID 302676176, index ID 1, partition ID 72057594076135424, alloc unit ID 72057594090225664 (type In-row data). Page (1:262640) is missing a reference from previous page (1:262631). Possible chain linkage problem. 
Msg 8928, Level 16, State 1, Line 1 
Object ID 302676176, index ID 1, partition ID 72057594076135424, alloc unit ID 72057594090225664 (type In-row data): Page (1:3143601) could not be processed. See other errors for details. 
Msg 8976, Level 16, State 1, Line 1 
Table error: Object ID 302676176, index ID 1, partition ID 72057594076135424, alloc unit ID 72057594090225664 (type In-row data). Page (1:3143601) was not seen in the scan although its parent (1:3143681) and previous (1:3143600) refer to it. Check any previous errors. 
Msg 8944, Level 16, State 13, Line 1 

如何修復在表中的一致性錯誤?

回答

0

對我來說,更多的索引一致性問題,儘管你可以嘗試刪除並重新創建索引ID = 1的對象302676176(select object_name(302676176)會給你表名)。

第二個選項是DBCC CHECKTABLE(,REPAIR_REBUILD)

第三和最後一個選項是DBCC CHECKTABLE(,REPAIR_ALLOW_DATA_LOSS)。