Help Re Indexing

  • 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?

  • Vertigo44 (2/1/2013)


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

    Not unless you like doing your index maintenance twice.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • 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)

  • Thank you! I was able to Reindex all the user tables that were above 30% fragmentation successfully within the maintenance window. This server is in high demand since it runs our Emergency Room application 24/7. It is very difficult for us to get a downtime window with the Physicians. That being said I have noticed a few issues...

    Even after rebuilding all the indexes, each time the nightly online index reorg job kicks on, the users experience issues with the application. It's not a rebuild but a reorg. Also, the mdf files and the ldf files are located on the same drive. This drive is highly fragmented. I tried to defrag it once I finished the index rebuild but ran out of time as the users needed it. Im still trying to figure out if that could be what is causing their issues with the online reorg job kicking in.

    Quick facts: SQL Server 2000, Windows Server 2003 32bit with 3.5 GB Ram. I have set SQL Server Memory Min = 1024 and Max 2.5 GB. Any ideas?

  • What RAID type are you using? Maybe a hardware based 0+1 is needed. This is recommended for mission critical 24/7 systems.

    ----------------------------------------------------

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply