Rebuild Index of very large tables in SQL Server 2005/2008

  • Hi,

    Can anyone please provide me an efficient script to rebuild and reorganize the indexes of a very large table?

    I have such 10 tables where the table size is very large with indexes are highly fragmented. Instead of simply running alter rebuild index statement, I want my script will choose based on factors when to go for rebuild index and when to go for rebuild index.

    Kindly assist me with an efficient query.

    Regards

    Thanks.

  • http://ola.hallengren.com/Versions.html

    http://sqlfool.com/2011/06/index-defrag-script-v4-1/

    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

Viewing 2 posts - 1 through 1 (of 1 total)

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