Currently, I have a backup file that's downloaded on a daily basis to a drive on my server called dn0r.dbu. There's a SQL management job that executes every morning that extracts the tables from the backup file to a database on my server called dn0r.
The command that's executing this backup is:
RESTORE DATABASE dn0r FROM DISK = 'G:\dbbkups\mssql\cis0\dn0r.dbu'
I need to change this so that the dn0r.dbu file is being restored to a database called CISSite. The problem I run into is that according to the MS support site, I cannot restore to a database where the files don't belong. I'm assuming this means that I can't just restore dn0r.dbu to CISSite.
MS support site page:
The page does add that you can "perform a full database restore in another location". Searching on this information gives me the MSDN page for it:
But from what I'm reading, it's about restoring from C:\ to D:\ in the example... not quite what I want to do.
Is there any way to restore the tables to a different database than the one that's named?
Thanks in advance!
The command that's executing this backup is:
RESTORE DATABASE dn0r FROM DISK = 'G:\dbbkups\mssql\cis0\dn0r.dbu'
I need to change this so that the dn0r.dbu file is being restored to a database called CISSite. The problem I run into is that according to the MS support site, I cannot restore to a database where the files don't belong. I'm assuming this means that I can't just restore dn0r.dbu to CISSite.
MS support site page:
The page does add that you can "perform a full database restore in another location". Searching on this information gives me the MSDN page for it:
But from what I'm reading, it's about restoring from C:\ to D:\ in the example... not quite what I want to do.
Is there any way to restore the tables to a different database than the one that's named?
Thanks in advance!