Recording a maintenance history of your database

Learn how to set up a record of your maintenance history for your Microsoft SQL Server database and maintain performance.

Keeping records of your database activity is important to keeping it humming along. Corruptions can usually be traced to single entry or access. For the same reason you keep records of activity, you should also keep track of maintenance.

You can create a detailed summary of the actions that your maintenance plan took into a history table within the msdb database. It doesn't matter whether the msdb database is located on the server that stores the plan or another server of your choice.

You create this history by setting several options in the Database Maintenance Plan wizard. The first option is enabling the write history and specifying the location it is stored on. To place the history on the server where the plan is created, use the msdb.dbo.sysdbmaintplan_history Table on the Local Server. You can also limit the rows in the table using the second option in the wizard. If you set a size that is exceeded, SQL Server deletes the oldest data in the table and replaces it with the newest data, FIFO, or first in first out. Should you decide to record the history to a remote server, the third option in the wizard lets you do that by specifying the name of the server and the path to the msdb database that you want to use.


Barrie Sosinsky is president of consulting company Sosinsky and Associates (Medfield MA). He has written extensively on a variety of computer topics. His company specializes in custom software (database and Web related), training and technical documentation.


This was first published in March 2005

Dig deeper on Microsoft SQL Server Performance Monitoring and Tuning

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchBusinessAnalytics

SearchDataCenter

SearchDataManagement

SearchAWS

SearchOracle

SearchContentManagement

SearchWindowsServer

Close