Cleaning and Backing Up the Database
This step involves running sp_updatestats, running some DBCC commands, and dumping your transaction log and database.
To clean and back up your database:
-
To check the integrity of the database, also run the following DBCC command, for example through SQL Server Management Studio:
DBCC CheckDBOracle recommends that you run this command before you do a dump of your database to confirm that everything is set up properly.
-
Back up the transaction log.
This step is not necessary if you previously enabled Truncate Log On Checkpoint. If you did enable Truncate Log On Checkpoint, you should turn it off at this point. You can use the No_Log or Truncate_Only option because you will not be saving your log at this time.
-
Back up the database.
Make sure you have a good backup schedule in place so you can recover your work in case of an emergency. This usually includes scheduling nightly backups of the transaction log and weekly backups of the database.
See Also
The SQL Server Books Online