Chris, Thank for your tip.
I had tried replacing the db earlier, using
and although that ran fine, when I try to restore log files
I get
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?
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?