ok I'm trying to Backup my database to disk, then restore the database to the same server but under a new name
Please can someone help me with this.
My code so far:
BACKUP DATABASE master TO DISK = 'D:\archive.bak'
DROP DATABASE archive
CREATE DATABASE archive
RESTORE DATABASE archive FROM DISK = 'D:\archive.bak'
Now this doesn't work because I need to use the WITH REPLACE overwrite option
None of my help resources even mention this as an option.
Please help,
Richard
Please can someone help me with this.
My code so far:
BACKUP DATABASE master TO DISK = 'D:\archive.bak'
DROP DATABASE archive
CREATE DATABASE archive
RESTORE DATABASE archive FROM DISK = 'D:\archive.bak'
Now this doesn't work because I need to use the WITH REPLACE overwrite option
None of my help resources even mention this as an option.
Please help,
Richard