SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


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


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

Author
Message
Mani-584606
Mani-584606
SSCarpal Tunnel
SSCarpal Tunnel (4.3K reputation)SSCarpal Tunnel (4.3K reputation)SSCarpal Tunnel (4.3K reputation)SSCarpal Tunnel (4.3K reputation)SSCarpal Tunnel (4.3K reputation)SSCarpal Tunnel (4.3K reputation)SSCarpal Tunnel (4.3K reputation)SSCarpal Tunnel (4.3K reputation)

Group: General Forum Members
Points: 4280 Visits: 1998
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?
GilaMonster
GilaMonster
SSC Guru
SSC Guru (365K reputation)SSC Guru (365K reputation)SSC Guru (365K reputation)SSC Guru (365K reputation)SSC Guru (365K reputation)SSC Guru (365K reputation)SSC Guru (365K reputation)SSC Guru (365K reputation)

Group: General Forum Members
Points: 365641 Visits: 46933
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


winston Smith
winston Smith
SSCertifiable
SSCertifiable (7.2K reputation)SSCertifiable (7.2K reputation)SSCertifiable (7.2K reputation)SSCertifiable (7.2K reputation)SSCertifiable (7.2K reputation)SSCertifiable (7.2K reputation)SSCertifiable (7.2K reputation)SSCertifiable (7.2K reputation)

Group: General Forum Members
Points: 7161 Visits: 2081
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.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search