SQL Server online consultants came across an interesting scenario where one of our client was unable to restore a native SQL Server backup successfully performed from one instance running on Machine A on another instance of SQL Server running on machine B.
If you try to restore the same backup on same instance on the machine A, restore completes successfully without any issues but it always fails when you try to restore the database from same backup file on any other instance on a different host.
Use SQL:
RESTORE LOG dbName FROM DISK = 'D:\Hot backup\dbName.trn' WITH FILE = 2, NORECOVERY
The restore always fails with the below message:
The restore fails with the message similar to
“The media family on device ‘C:\Program Files\Microsoft SQL Server\MSSQL\BACKUP\myDB.trn' is incorrectly formed. SQL Server cannot process this media family”.
Please try to remove 'FILE = 2,' it can work on my side.

本文探讨了在一个具体的场景中,SQL Server的本机备份从Machine A的一个实例上成功创建后,在尝试将其还原到Machine B上的另一个SQL Server实例时遇到的问题。尽管在同一台Machine A的原始实例上能够顺利完成备份还原,但在其他主机的不同实例上尝试同样的操作时却总是失败。文章还提供了一个可能的解决方法。
3万+

被折叠的 条评论
为什么被折叠?



