Create a Maintenance Plan is SQL 2005 standard edition

Hello,

I am trying to create a Maintenance Plan in SQL 2005; I need to do the following:

Rebuild index
Update statistics
Transactional log every 2 hours
Differential every 4 hours
Full every day

Which one should I do first Rebuild index or update statistics and how frequently should I performs those steps?

Thank you in advance.


hmraAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ady FootSharePoint ConsultantCommented:
Taken from an MVP post elsewhere answering the same question:

You should update the statistics to keep the performance well. The frequency 'depends' if many rows are regularly added or modified you need to do frequently. Else you can do that weekly at off production hours. Sql Server keeps tracks the last time the statistics were updated. You can refer this link for more information, http://weblogs.sqlteam.com/joew/archive/2007/08/31/60316.aspx 

Rebuilding indexes needs to performed if there is large fragmentation you can make use of sys.dm_db_index_physical_stats to identify the index fragmentation. You can perform it on a weekly basis as it will utilize most of the system resources and needs to be scheduled at off production hours. Refer this link where similar topic was discussed. http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2744477&SiteID=1
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Aaron ShiloChief Database ArchitectCommented:
hi

if you run rebuild index then you dont need to update statistics since the rebuild operation allready takes care of that.

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.