dburniston
MIS
I've received a backup file from another company that I need to restore to my server. I believe I have to use the Restore With Move.
I need to use a filename instead of a backup device, and I get a syntax error when I try. The database doesn't currently exist on my system.
RESTORE DATABASE Prep FROM 'D:\Data\Prep' WITH MOVE 'Prep' TO d:\Prep.mdf'
The backup file Prep doesn't appear to have a file extension, even from the directory list in command prompt and only shows as Prep. The syntax error states the file definition is a problem.
Can anyone help me get the data restored?
Thanks,
...Dave
I need to use a filename instead of a backup device, and I get a syntax error when I try. The database doesn't currently exist on my system.
RESTORE DATABASE Prep FROM 'D:\Data\Prep' WITH MOVE 'Prep' TO d:\Prep.mdf'
The backup file Prep doesn't appear to have a file extension, even from the directory list in command prompt and only shows as Prep. The syntax error states the file definition is a problem.
Can anyone help me get the data restored?
Thanks,
...Dave