Quantcast
Channel: Red Gate forums: SQL Backup 7
Viewing all articles
Browse latest Browse all 713

RE: Error trying to Restore DB & Move files with NORECOVERY

$
0
0
Chris, Thank for your tip.

I had tried replacing the db earlier, using

Code:
EXECUTE master..sqlbackup '-SQL "RESTORE DATABASE [MyDB2] FROM DISK = N'... ' WITH REPLACE, MOVE N'MyDB_Data' TO N'...', MOVE N'MyDB_Log' TO N'...' "'

and although that ran fine, when I try to restore log files
Code:

RESTORE LOG MyDB2 FROM DISK = '...' WITH NORECOVERY

I get
Code:
The media family on device 'C:\....sqb' is incorrectly formed. SQL Server cannot process this media family.

I am not sure the issue is related so as I am trying to restore the log to a different DB (than original) OR cos the db is already closed/recovered as I used the REPLACE option

Any thoughts?

Viewing all articles
Browse latest Browse all 713

Trending Articles