• Vertigo44 (2/1/2013)


    Hi, I have a 28 GB SQL 2000 Database that is in need of a re index. I am currently running DBCC DBREINDEX on all tables within My_DB and was wondering if there was a way to tell when the process would complete.

    Also, should I run DBCC INDEXDEFRAG after DBCC DBREINDEX completes?

    No real way to tell when it will complete. Even estimates based on previous rebuilds can be way off.

    To clarify what Gail said, DBCC DBREINDEX will do everything including defragging and rebuilding statistics so there's no need to do a DBCC INDEXDEFRAG after DBCC DBREINDEX.

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)