How to identify the list of tables and indexes that frequently most fragmented

  • Hi,

    I need to plan for Index reorg/rebuild on a large database.

    I do not want to do index reorg/rebuild on entire database because it is taking for ever.

    And want do index reorg/rebuild for most fragmented indexes on one day and the rest the other day.

    So how to identify the list of tables and indexes that frequently most fragmented?

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

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

    No need to roll your own solution.

    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
  • Or you could use one of the SQL Managment tools. I have used Idera SQL DM and found it quite good. Quest & Redgate have similar tools, which although i have not used, are supposed to be pretty good.

    They become very valuable when you are managing more than a handfull of servers/instances.

    One thing these tools have over Ola Halegren's script is they usually have a report that shows you tables that are fragmented most often (which is what you are asking for in the thread title). Ola's script will get you the tables that are most fragmented at this particular moment, but it wont tell you that table ta_22343 or whatever spends x% of its time above 50% fragmentation.

    they can be a tad pricy if budget is tight though.

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

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