In this article

How to: Create a Maintenance Plan

12/03/2008

2 minutes to read

In this article

There are two ways to create a maintenance plan: you can create a plan using the Maintenance Plan Wizard, or you can create a plan using the design surface. The Wizard is best for creating basic maintenance plans, while creating a plan using the design surface allows you to utilize enhanced workflow.

To create or manage maintenance plans, you must be a member of the sysadmin fixed server role. Note that Object Explorer only displays maintenance plans if the user is a member of the sysadmin fixed server role.

To create a maintenance plan using the design surface

The Toolbox opens, and the <Maintenance Plan Name>[Design] surface opens with the default Subplan_1created. Optionally enter a description for the entire plan on the Design tab.

Double-click Subplan_1, and enter a name and description for the subplan in the Subplan Properties dialog box. Click the Subplan Schedule icon to enter schedule details in the Job Schedule Properties dialog box.

To build the subplan, drag and drop task flow elements from the Toolbox to the plan design surface to define the tasks that will be performed. Double-click tasks to open dialog boxes to configure the task options.

To define the workflow between tasks, click the task you want to occur first, hold the CTRL key down, and then click the task you want to occur second. Right-click either task, and then click Add Precedence Constraint.

To add another subplan that contains tasks run on a different schedule, click Add Subplan on the toolbar.

To add connections to different servers, click Manage Connections.

To specify reporting options, click the Reporting and Logging icon. To save more detailed information, select Log extended information. To write maintenance plan results information to another server, select Log to remote server. To view the results in the log file viewer, right-click the Maintenance Plans node or the specific maintenance plan, and then click View History.