Backup and Restore commands can only be executed from within the master database; this is accomplished by issuing the USE master command. The example below backs up the USRDB database to disk.
USE master
BACKUP DATABASE USRDB TO DISK = 'C:\Backup\Renee\DatabaseBackup\2005.07.20.1200.USRDB.Bak'
USE master
DROP DATABASE USRDB
RESTORE DATABASE USRDB FROM DISK = 'C:\Backup\Renee\DatabaseBackup\2005.07.20.1200.USRDB.Bak'
No comments:
Post a Comment