Hi all,
I get the error when I restore the database from last night's backup.
I use the following cmd:
RESTORE DATABASE ABCRESTORE
FROM DISK = f:\SQLBackups\ABC\ABC_db_200703010508.BAK'
WITH MOVE 'abcdata' TO 'f:\data\abcdata.mdf',
MOVE 'abclog' TO 'f:\data\abclog.ldf'
go
error:
Server: Msg 3156, Level 16, State 1, Line 1
File 'abcdata' cannot be restored to 'f:\data\abcata.mdf'. Use WITH MOVE to identify a valid location for the file.
Server: Msg 3156, Level 16, State 1, Line 1
File 'abclog' cannot be restored to 'f:\data\abclog.ldf'. Use WITH MOVE to identify a valid location for the file.
Server: Msg 3013, Level 16, State 1, Line 1
RESTORE DATABASE is terminating abnormally.
Can anyone tell if what is wrong with ym cmd?
Thanks,
-techiPA
I get the error when I restore the database from last night's backup.
I use the following cmd:
RESTORE DATABASE ABCRESTORE
FROM DISK = f:\SQLBackups\ABC\ABC_db_200703010508.BAK'
WITH MOVE 'abcdata' TO 'f:\data\abcdata.mdf',
MOVE 'abclog' TO 'f:\data\abclog.ldf'
go
error:
Server: Msg 3156, Level 16, State 1, Line 1
File 'abcdata' cannot be restored to 'f:\data\abcata.mdf'. Use WITH MOVE to identify a valid location for the file.
Server: Msg 3156, Level 16, State 1, Line 1
File 'abclog' cannot be restored to 'f:\data\abclog.ldf'. Use WITH MOVE to identify a valid location for the file.
Server: Msg 3013, Level 16, State 1, Line 1
RESTORE DATABASE is terminating abnormally.
Can anyone tell if what is wrong with ym cmd?
Thanks,
-techiPA