al4629740
asked on
Rebuild and Reorganize Index
In SQL 2008, is it necessary to rebuild and reorganize the index under the maintenance Plans.
If so, which one should rebuild periodically? Should I Rebuild before Reorganizing?
What is the main difference between these two tasks? Are there any dangers to doing this?
I will be using the maintenance wizard to implement this, so any advice on the above questions would be helpful.
Thanks
If so, which one should rebuild periodically? Should I Rebuild before Reorganizing?
What is the main difference between these two tasks? Are there any dangers to doing this?
I will be using the maintenance wizard to implement this, so any advice on the above questions would be helpful.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
>Why not the maintenance plans?
You cannot really specify when to go for index reorganise and rebuild. Also i find it really hard to debug. The solution on that link is excellent most of the top SQL gurus uses that.
You cannot really specify when to go for index reorganise and rebuild. Also i find it really hard to debug. The solution on that link is excellent most of the top SQL gurus uses that.
ASKER
Would I run this code without modification?
http://ola.hallengren.com/scripts/IndexOptimize.sql
I am apprehensive about running any scripts that change something that I don't fully understand.
http://ola.hallengren.com/scripts/IndexOptimize.sql
I am apprehensive about running any scripts that change something that I don't fully understand.
ASKER
Also, in my original question, which would be better to do first?
Reorganize or rebuild?
Reorganize or rebuild?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ok. How does one determine the avg_fragmentation_in_perce nt
How does one determine the avg_fragmentation_in_perce nt
It is covered in that same article that Aneesh posted. Let me know if you are having difficulty reaching that link.
It is covered in that same article that Aneesh posted. Let me know if you are having difficulty reaching that link.
ASKER