Question : Defrag an SQL DB

I had a client working with SQL 2005 databases say that they "defragged" a database for better performance but didn't give any details. I assume they meant they Optimized and reorganized data or Integrity check and attempting to repair any minor problems. Sound right? Otherwise I'm not sure how they defragged a DB.

Answer : Defrag an SQL DB

Yes. Typically this is in a maintenance plan, but if not, you can set one up. It is a good idea to have this run regularly. You will want an integrity check and then a rebuild indexes and a reorganize indexes.

You would rebuild if avg_page_space_used_in_percent  was <60
Reorganize <75 and greater than 60

These are predone in the rebuild and reorganize maintenance options.
Random Solutions  
programming4us programming4us