0% found this document useful (0 votes)
62 views8 pages

Creating SQL Server 2008 Maintenance Plans

SQL Server maintenance plans can automate and schedule essential database maintenance tasks such as running consistency checks, and reorganizing or rebuilding indexes. The document provides instructions on how to configure a SQL Server 2008 maintenance plan using the Maintenance Plan Wizard. It describes selecting maintenance tasks, setting schedules, and defining task properties and order.

Uploaded by

Hikari0601
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
62 views8 pages

Creating SQL Server 2008 Maintenance Plans

SQL Server maintenance plans can automate and schedule essential database maintenance tasks such as running consistency checks, and reorganizing or rebuilding indexes. The document provides instructions on how to configure a SQL Server 2008 maintenance plan using the Maintenance Plan Wizard. It describes selecting maintenance tasks, setting schedules, and defining task properties and order.

Uploaded by

Hikari0601
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Creating SQL Server 2008 maintenance plans

Many of the database maintenance operations covered in this white paper can be programmatically
applied through the implementation of SQL Server maintenance plans. Maintenance plans can both
automate and schedule essential tasks to protect your data. By using maintenance plans in SQL Server
2008 or SQL Server 2005, an administrator can schedule such operations as running database
consistency checks, and reorganizing or rebuilding indexes. For more information, see the following
resources:
 Maintenance Plan Wizard (http://go.microsoft.com/fwlink/?LinkId=110855&clcid=0x409) for SQL
Server 2008
 Database Maintenance Plan Wizard (http://go.microsoft.com/fwlink/?LinkId=217494) for SQL Server
2005

To configure a SQL Server 2008 database maintenance plan


1. On the taskbar, click Start, point to All Programs, point to Microsoft SQL Server 2008, and then
click SQL Server Management Studio.
2. In Object Explorer, connect to an instance of the SQL Server 2008 Database Engine and then
expand that instance.
3. Click Management, right-click Maintenance Plans, and then click Maintenance Plan Wizard.
4. Click Next until you reach the Select Plan Properties page.

5. In the Name and Description fields, type a name and description.


6. Decide whether to configure one or more maintenance plans.
 To configure a single maintenance plan, select Single schedule for the entire plan or no
schedule.
 To configure multiple maintenance plans with specific tasks, select Separate schedules for
each task.
If you have an environment with 10 or more content databases or more than 200 GB of content, we
recommend that you configure separate maintenance plans to provide appropriate specificity and to
maximize the maintenance window.
If you configure multiple maintenance plans for a database, specify a name or description that
enables you to differentiate the plans and their purposes, including their schedules.
7. Click Change to set a schedule for one or more plans.
The Job Schedule Properties dialog box appears.

8. Complete the schedule, click OK, and then click Next.


9. On the Select Maintenance Tasks page, select the maintenance tasks to include in the plan, and then
click Next.
Notes:
 A maintenance plan should include either index reorganization or index rebuilding; not both.

 A maintenance plan should never include shrinking a database.

 To determine the duration of each task, test each task individually before combining tasks into a
single plan. You may need to define several maintenance plans on separate schedules to allow
tasks to complete during hours when end-user operations will not be negatively affected.
 The Maintenance Cleanup task removes files left over from executing a maintenance plan.
10. On the Select Maintenance Task Order page, change the order of the maintenance plan tasks if
needed. Select a task, and then click Move up or Move down. When tasks are correctly ordered,
click Next.
Note: If your databases are very large, you may want to create a separate maintenance plan for
checking database integrity less frequently than index maintenance.
Next, the wizard guides you through setting the details for each task.
11. On the Define Database Check Integrity Task page, select the databases to check for integrity, and
then click Next.
Note: You can safely check all SharePoint 2010 databases for integrity.
12. On the Define Reorganize Index Task page, in the Databases list, specify the databases to
reorganize the indexes for, select the Compact large objects check box, and then click Next.

13. On the Define Rebuild Index Task page, if you have chosen to rebuild indexes instead of reorganize
those, in the Databases list; specify the databases to reorganize the indexes for.
14. Select Change free space per page percentage, type 80, and then click next.
Change free space per percentage sets the fill factor for the database.
15. On the Define Maintenance Cleanup Task page, set the values that meet your needs, and then click
Next.
We recommend that you delete Maintenance Plan text reports.
16. On the Select Report Options page, select Write a report to a text file, select a location for the files,
and then click Next until the wizard is completed.

You might also like