I accidently deleted one of my database. I am now trying to restore it using a .BAK file. While trying to use EM I received the following error msg:
Use WITH MOVE to identify a valid location for the file.
I attempetd to write a script and use QA but that failed too, here is my script:
RESTORE DATABASE REPS2000
FROM 'C:REPS2000_db_200403160202.BAK'
WITH RECOVERY,
MOVE 'reps2000_dat'
TO 'C:reps2000.mdf',
MOVE 'reps2000_log'
TO 'reps2000_log.ldf'
My error msg states:
Incorrect syntax near 'C:REPS2000_db_200403160202.BAK'
I looked up the syntax and discovered that the 'DEVICE' should be named there. I went back to EM and according to EM that is how the device is stated, it is the drive/path/filename of the back up.
Can anyone tell me what should be in the FROM parm?
Thank you,
Trudye
Use WITH MOVE to identify a valid location for the file.
I attempetd to write a script and use QA but that failed too, here is my script:
RESTORE DATABASE REPS2000
FROM 'C:REPS2000_db_200403160202.BAK'
WITH RECOVERY,
MOVE 'reps2000_dat'
TO 'C:reps2000.mdf',
MOVE 'reps2000_log'
TO 'reps2000_log.ldf'
My error msg states:
Incorrect syntax near 'C:REPS2000_db_200403160202.BAK'
I looked up the syntax and discovered that the 'DEVICE' should be named there. I went back to EM and according to EM that is how the device is stated, it is the drive/path/filename of the back up.
Can anyone tell me what should be in the FROM parm?
Thank you,
Trudye