Quantcast
Channel: Answers for "SQL 2008: Fail to Restore database from a BAK file"
Viewing all articles
Browse latest Browse all 8

Answer by sp_lock

$
0
0

Have you tried using the "move" parameter?

RESTORE DATABASE xxx
FROM DISK = 'd:\xxx_20091201.bak'
WITH RECOVERY,
  MOVE 'xxx_data' TO 'w:\data\xxx.mdf',
  MOVE 'xxx_Log' TO 'w:\data\xxx_log.ldf'

Viewing all articles
Browse latest Browse all 8

Trending Articles