• Thank you for your postings.

    Rookie, I believe DBCC INDEXDEFRAG shuffles and reorganizes the existing pages that the index occupies, while DBCC DBREINDEX rebuild the index table itself.

    Hillary, DBCC CHECKALLOC doesn't return any errors.  DBCC CHECKDB returns the following:

    ...

    Server: Msg 8964, Level 16, State 1, Line 1

    Table error: Object ID 658101385. The text, ntext, or image node at page (3:407121), slot 4, text ID 145881235456 is not referenced.

    Server: Msg 8964, Level 16, State 1, Line 1

    Table error: Object ID 658101385. The text, ntext, or image node at page (3:407601), slot 12, text ID 146103599104 is not referenced.

    Server: Msg 8964, Level 16, State 1, Line 1

    Table error: Object ID 658101385. The text, ntext, or image node at page (3:408496), slot 10, text ID 146519752704 is not referenced.

    Server: Msg 8986, Level 16, State 1, Line 1

    Too many errors found (201) for object ID 658101385. To see all error messages rerun the statement using "WITH ALL_ERRORMSGS".

    Server: Msg 8952, Level 16, State 1, Line 1

    Table error: Database 'custTrans', index 'MSmerge_contents.nc2MSmerge_contents' (ID 1957582012) (index ID 2). Extra or invalid key for the keys:

    Server: Msg 8956, Level 16, State 1, Line 1

    Index row (3:4341892:27) with values (generation = 672333 and tablenick = 2236004 and rowguid = 93D0F4E5-3290-4372-9799-4BB3317E4167`¢¨) points to the data row identified by ().

    Server: Msg 8952, Level 16, State 1, Line 1

    Table error: Database 'custTrans', index 'MSmerge_contents.nc3MSmerge_contents' (ID 1957582012) (index ID 3). Extra or invalid key for the keys:

    Server: Msg 8956, Level 16, State 1, Line 1

    Index row (3:869208:101) with values (partchangegen = NULL and tablenick = 2236004 and rowguid = 93D0F4E5-3290-4372-9799-4BB3317E4167`¢¨) points to the data row identified by ().

    Server: Msg 8951, Level 16, State 1, Line 1

    Table error: Table 'MSmerge_contents' (ID 1957582012). Missing or invalid key in index 'nc4MSmerge_contents' (ID 4) for the row:

    Server: Msg 8955, Level 16, State 1, Line 1

    Data row (1:20154:9) identified by (RID = (1:20154:9) tablenick = 2236004 and rowguid = 55EA2ACD-1475-4F0C-953B-E76A2CBAC33BØ™¨) has index values (rowguid = 55EA2ACD-1475-4F0C-953B-E76A2CBAC33B`¢¨ and tablenick = 2236004 and rowguid = 55EA2ACD-1475-4F0C-953B-E76A2CBAC33B`¢¨).

    Server: Msg 8952, Level 16, State 1, Line 1

    Table error: Database 'custTrans', index 'MSmerge_contents.nc4MSmerge_contents' (ID 1957582012) (index ID 4). Extra or invalid key for the keys:

    Server: Msg 8956, Level 16, State 1, Line 1

    Index row (1:107517:32) with values (rowguid = 93D0F4E5-3290-4372-9799-4BB3317E4167`¢¨ and tablenick = 2236004 and rowguid = 93D0F4E5-3290-4372-9799-4BB3317E4167`¢¨) points to the data row identified by ().

    There are 4988667 rows in 92988 pages for object 'detTrans'.

    CHECKDB found 0 allocation errors and 244 consistency errors in table 'detTrans' (object ID 658101385).

    DBCC results for 'MSmerge_contents'.

    There are 2978547 rows in 309775 pages for object 'MSmerge_contents'.

    CHECKDB found 0 allocation errors and 4 consistency errors in table 'MSmerge_contents' (object ID 1957582012).

     

    So I was wondering if DBCC DBREINDEX is sufficient to fix the problem, or do I have to run a DBCC CHECKDB with REPAIR_ALLOW_DATA_LOSS?

     

    Thanks,

    baes