Setting up a basic SQL maintenance plan

Transformations strongly recommends setting up scheduled SQL maintenance plans to rebuild the indexes, update the SQL statistics, and create and manage database backups. The following steps will create a basic maintenance plan which can be further tailored to suit your organization's needs:

  1. Open Microsoft SQL Server Management Studio, right-click on Management >> Maintenance Plans, and select Maintenance Wizard.
    Capture1.PNG

  2. Click Next to start the wizard.
    Capture2.PNG

  3. Give the maintenance plan a descriptive name (Uluro Database Maintenance Plan) and select Separate schedules for each task.
    Capture3.PNG

  4. Select the following maintenance tasks:
    Capture4.PNG
    • Rebuild Index
    • Update Statistics
    • Clean Up History
    • Back Up Database (Full)

  5. Unless explicitly needed, keep the default task order.
    Capture5.PNG

  6. Default options for Rebuild Index Task:
    Capture6.PNG

    • Databases: printqueue, Uluro, UluroWeb3
      Capture6-a.PNG

    • Schedule: Sunday at 12:00:00 AM
      Capture6-b.PNG

  7. Default options for Update Statistics Task:
    Capture7.PNG

    • Databases: printqueue, Uluro, UluroWeb3
      Capture7-a.PNG

    • Schedule: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday at 12:00:00 AM
      Capture7-b.PNG

  8. Default options for History Cleanup Task:
    • Weeks to keep historical data: 4 Weeks
      Capture8.PNG

    • Schedule: Sunday at 10:00:00 PM
      Capture8-a.PNG

  9. Default options for Back Up Database (Full) Task:
    Capture9.PNG

    • General >> Databases: printqueue, Uluro, UluroWeb3
      Capture9-a.PNG

    • General >> Schedule: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday at 12:00:00 AM
      Capture9-b.PNG

    • Destination >> Folder: Set destination folder where backups will be stored
      Capture9-c.PNG

  10. Use the default reporting options.
    Capture10.PNG

  11. Complete the Wizard.
    Capture11.PNG

  12. Should complete without any errors.
    Capture12.PNG

  13. (Optional)
    Double-click Uluro Database Maintenance Plan and then give the 4 sub-plans a more descriptive name to assist future maintenance.
    • Before:
      Capture13-a.PNG

    • After (Save the changes when done):
      Capture13-b.PNG

0 Comments

Article is closed for comments.
Powered by Zendesk