Results 1 to 5 of 5

Thread: SQL 2005 Maint Plan Recommedations

  1. #1
    Join Date
    Aug 2007
    Posts
    3

    SQL 2005 Maint Plan Recommedations

    Hi experts,

    I am trying to set up a best practice maintenance plan for my sql 2005 servers. I know I need to have a full recovery model and perform a daily full and an hourly log backup, but after that I am not sure exactly what else should be automated. If you recommend that other things should be in a "best practice" plan, like indexing and database shrinking, can you please tell me why I want to do this so I can better understand my sql maintenance plans. Also, I need to know so I can reiterate it back to my supervisors.

    Thanks!

  2. #2
    Join Date
    Sep 2002
    Posts
    5,938
    You should do db integrity check (ensure db healthy), reindex (improve query performance and defrag table), plan and backup files clean up. Don't shrink db, it's performance killer.

  3. #3
    Join Date
    Aug 2007
    Posts
    3

    Exclamation DB Shrink

    Isn't db shrinking important? Shouldn't it be done at least occasionally? What does it do for the db?

  4. #4
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932
    You should try to size the database when you first create it, this way you do not pay the price of auto extend during application use. It not only slows down the application during extension, it causes file level fragmentation as the new segments added to the data file may not be next to the existing segment.

    Shrinking causes data to be moved to the beginning of files and it may cause logical fragmentation.

    So shrink it only if you really need to, for example when one database unnecessarily expanded eating up all the disk space.

  5. #5
    Join Date
    Aug 2007
    Posts
    3
    Thanks,

    You guys have made my week!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •