[TroubleShooting] & #39; trn \ bak & #39; is incorrectly formed. SQL Server cannot process this media family.

Source: Internet
Author: User

Zookeeper

SQL Server online consultantsCame guest SS an interesting scenario where one of our client was unable to restore a native SQL Server backup successfully saved 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, 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:

RESTORELOG dbNameFROMDISK = 'd: \ Hot backup \ dbName. trn' WITHFILE = 2, NORECOVERY

The restore always fails with the below message:

The restore fails with the message similar

"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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.