You can back up the contents of the database and transaction log to a device such as a tape drive or to another file location on the server. The frequency of the backup is up to you, the SMS administrator. Generally, you’ll back up the SMS database as frequently as necessary to ensure a current and accurate restoration of the data. A common database strategy involves performing a complete backup of the database once a week, with incremental backups of the data that has changed each day between full backups.
Note
Several third-party backup programs, such as Veritas Backup Exec for Microsoft Windows 2000, include modules designed specifically for backing up SQL Server databases. If you have access to such a product, you can have it perform the backup as part of its systemwide backup routine, eliminating the need to configure a backup redundantly through SQL Server or through the SMS Administrator Console.To preserve the data’s integrity, it’s important that no SMS components try to access the SMS database when the backup or restore is taking place. Be sure that no SMS Administrator Consoles are running and that all SMS components on the site server have been stopped. In addition, when you’re restoring the database be sure to set the database to single-user mode. This is set as a property of the database. Note that you won’t be able to set the single-user mode option if any open connections exist to the database.
Although the preferred method for backing up the SMS site database is to use the site maintenance task provided in the SMS Administrator console, there’s no corresponding restore task. You can back up and restore the SMS site database through the SQL Enterprise Manager.
To back up the SMS database using SQL Server 2000, follow these steps:
To restore the database, follow these steps:
After you perform your backup and restore procedure, be sure to clear the Single User option you set in step 3 of the backup steps outlined previously.
In this section we’ve looked at the procedures for backing up and restoring SMS databases using SQL Server. Note that what we discussed are only essential procedures. You should consult the SQL Server documentation for other configuration options.