need a script to find indexes which are having more than 30% and do the rebuild index...
-
Monday, January 21, 2013 7:18 PM
Hi All,
i need a script to do the rebuild index based up the fragmentation which are having more than 30%...
Thanks,
rup
All Replies
-
Monday, January 21, 2013 7:23 PMModerator
Take a look at this blog post
http://sqlfool.com/2011/06/index-defrag-script-v4-1/
For every expert, there is an equal and opposite expert. - Becker's Law
My blog- Edited by Allen Li - MSFTModerator Wednesday, January 30, 2013 2:16 AM Mark as answer
- Proposed As Answer by Allen Li - MSFTModerator Wednesday, January 30, 2013 2:17 AM
- Marked As Answer by Allen Li - MSFTModerator Wednesday, January 30, 2013 2:17 AM
-
Wednesday, January 23, 2013 8:44 PM
Hi Naomi,
Thanks for giving good one...i need to run this one on test environment..
Thanks,
rup
-
Wednesday, January 23, 2013 8:59 PMModerator
I highly recommend using Hallegren's maintenance scripts:

