Rebuild database indexes

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

Rebuild database indexes

How to rebuild database indexes

How to create a scheduled task

1.From within SQL Management Studio, click RMB and select Maintenance Plans, then Maintenance Plan Wizard

images_DBmaintenance01

2.Choose the Next button to begin the maintenance plan for rebuilding the indexes of the PDM database

images_DBmaintenance02

3.Name the new maintenance plan, then click the Change... to schedule it.

images_DBmaintenance03

4.Set the frequency for this maintenance plan. In this example the plan is set to run monthly. When set, proceed with OK button.

images_DBmaintenance04

Once back to the previous dialog, confirm with the Next > button:

images_DBmaintenance05

5.In the maintenance Task choose the Rebuild Index tast. Click the Next > button to proceed:

images_DBmaintenance06

6.Since there is only one task there is no need to change any order. Click the Next > button to proceed:

images_DBmaintenance07

7.Choose the database in "These databases:" option, then locate the main PDM database and enable its check. Click first the OK button then the Next >to proceed:

images_DBmaintenance08

8.If you would like a report written, choose the location for that report to be written to. Click the Next > button to proceed:

images_DBmaintenance09

9.To build the plan, click the Finish button:

images_DBmaintenance10

10.Ensure that the plan is built correctly and click the Close button.
The plan is now ready and will run accordingly to the schedule.

images_DBmaintenance11

How to run planned indexing manually

1.If you would like to run the plan manually, expand the Maintenance Plans and locate the plan you wish to run; then right click and select Execute from the popup menu:

images_DBmaintenance12

2.Ensure that the plan runs correctly.

images_DBmaintenance13

You can also view the report by selecting the Report ▼ drop down list and choosing View Report.

images_DBmaintenance14

The report will display whether the plan was run successfully or not:

images_DBmaintenance15

You can also view the entire log if you have selected an output file. Keep in mind, if you do write a log, these files are not automatically removed and will continue be created in the defined folder.