Create a Maintenance Plan In SQL Server 2008

A Maintenance plan is useful to perform routine database administration tasks like checking database integrity, performing index maintenance, updating database statistics, performing database backup etc.

In order to create a maintenance plan in SQL Server 2008, open SQL Server Management Studio > Object Explorer > Expand Server > Expand Management > Right-click Maintenance Plans and select Maintenance Plan Wizard > In the Maintenance Plan Wizard dialog box, click Next > type a name for the plan in the next window. You can also click on the 'Change' button to set the Job Schedule properties.

Click Next and select the Maintenance tasks that you want to perform



I have selected 'Clean Up History' and 'Back Up Database(Full)' . Click Next. You can set the maintenance task order here. The next screen depends on the maintenance tasks you have selected and are self explanatory. The last screen gives you an option for saving or distributing a report of the maintenance plan actions. The report contains details of the steps executed by the maintenance plan including any error information.

Finally, use the Complete the Wizard page to review the tasks included in the maintenance plan and to create the task.


About The Author

Suprotim Agarwal, MCSD, MCAD, MCDBA, MCSE, is the founder of DotNetCurry, DNC Magazine for Developers, SQLServerCurry and DevCurry. He has also authored a couple of books 51 Recipes using jQuery with ASP.NET Controls and a new one recently at The Absolutely Awesome jQuery CookBook.

Suprotim has received the prestigous Microsoft MVP award for nine times in a row now. In a professional capacity, he is the CEO of A2Z Knowledge Visuals Pvt Ltd, a digital group that represents premium web sites and digital publications comprising of Professional web, windows, mobile and cloud developers, technical managers, and architects.

Get in touch with him on Twitter @suprotimagarwal, LinkedIn or befriend him on Facebook

No comments: