NOTE: The following only applies to a full installation of SQL Server Management Studio. SQL Server Management Studio Express does not include some features that are mentioned below.
Instructions:
- On the database server, open SQL Server Management Studio.
- Login to the database server with an SA equivalent account.
- Under the database server name, expand the Databases folder.
- Right-click the Track-It! database and then click Properties.
- Select the Options page and make sure the Recovery Model is set to "Full". NOTE: You may choose the "Simple" recovery model, however, you will not be able to setup scheduled backups of the Transaction log as instructed below.
- Click Ok if any changes had been made.
- Next, under the database server name expand the Management folder.
- Right-click Maintenance Plans and then select Maintenance Plan Wizard. NOTE: If you receive an error in regards to "Agent XPs", please run the following SQL command in a new query window to enable Agent XPs: sp_configure 'show advanced options', 1; GO RECONFIGURE; GO sp_configure 'Agent XPs', 1; GO RECONFIGURE GO
- When the SQL Server Maintenance Plan Wizard appears, click Next.
- Enter a name for the plan and description if desired (i.e. Track-It! DB Backups).
- At the bottom, enable the 'Separate schedules for each task' option (unless the database is running in Simple recovery mode and you will only be doing a full backup).
- Enable the Back Up Database (Full) and Back Up Database (Transaction Log) options and then click Next (you may also want to enable the 'Back Up Database (Differential)' option as well, but will introduce another schedule that must be configured, which isn't covered below).
- On the 'Select Maintenance Tasks Order' window click Next again.
- Select the database that you would like to backup and, if desired, specify a location other than the default path for where the backup will be saved.
- At the bottom, click the Change button.
- Select the frequency that you would like the full backup to run. For example, set it to run once per week or once per day.
- Once the schedule has been set, click OK.
- Click Next to go to the next task (Transaction Log backup).
- Once again, select the database that you would like to backup and, if desired, specify a location other than the default path for where the transaction log backup will be saved. NOTE: Only databases running in Full recovery mode will appear in the list.
- At the bottom, click the Change button.
- Select the frequency that you would like the transaction log backup to run. For example, set it to run the backup every four hours or more.
- Once the schedule has been set, click OK.
- Click Next, select the location where a backup report file will be created and then click Next.
- Click Finish to complete the wizard.
A maintenance plan has now been created to create a full database backup as well as frequent transaction log backups that can be used to recover the database if needed. Make sure to monitor the jobs to make sure the backups are being created as expected.