2016-08-19 75 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)。