[TroubleShooting]'trn\bak' is incorrectly formed. SQL Server cannot process this media family.



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.

[TroubleShooting]'trn\bak' is incorrectly formed. SQL Server cannot process this media family.,布布扣,bubuko.com

[TroubleShooting]'trn\bak' is incorrectly formed. SQL Server cannot process this media family.

时间: 2024-12-08 20:10:48

[TroubleShooting]'trn\bak' is incorrectly formed. SQL Server cannot process this media family.的相关文章

SQL Server 2008性能故障排查(四)——TempDB

原文:SQL Server 2008性能故障排查(四)--TempDB 接着上一章:I/O TempDB: TempDB是一个全局数据库,存储内部和用户对象还有零食表.对象.在SQLServer操作过程中产生的存储过程等数据.在一个SQLServer实例中,只有一个TempDB.所以容易成为性能和磁盘空间瓶颈.TempDB可能因为空间可用程度和过量的DDL和DML操作而变得超负荷.这可能导致不相关的应用运行缓慢甚至失败. 常见的TempDB问题如下: l  TempDB空间超支. l  因为Te

SQL Server数据库配置改进

针对SQL Server数据库的配置,遵从最佳实践,有如下几项,看能否修改生产环境实例配置. 以下为调整方法和依据: 启动账号内存锁定 保证SQL Server提交内存不会被交换或空间被操作系统收缩. The SQL Server 64-bit version uses "locked pages" to prevent the process working set (committed memory) from being paged out or trimmed by the o

《Pro SQL Server Internals》部分翻译(P36-P45)

本文选自<Pro SQL Server Internals> 作者: Dmitri Korotkevitch 出版社: Apress 出版年: 2016-12-29 作者简介:Dmitri Korotkevitchis是微软SQL Server MVP和微软认证大师.作为应用程序和数据库开发人员.数据库管理员和数据库架构师,他具有多年使用SQL Server的经验.他专门从事OLTP系统在高负载下的设计.开发和性能调优.Dmitri经常在各种Microsoft和SQL PASS活动上发言,他为

《Pro SQL Server Internals》翻译之索引

本文选自<Pro SQL Server Internals> 作者: Dmitri Korotkevitch 出版社: Apress 出版年: 2016-12-29 页数: 804 作者简介:Dmitri Korotkevitchis是微软SQL Server MVP和微软认证大师.作为应用程序和数据库开发人员.数据库管理员和数据库架构师,他具有多年使用SQL Server的经验.他专门从事OLTP系统在高负载下的设计.开发和性能调优.Dmitri经常在各种Microsoft和SQL PASS

如何通过trn日志文件恢复SQL Server 事务日志 还原 备份

首先恢复时一个完整的备份,但在完整的备份里一定要选择with nonerecovery(企业管理器里选项中是第2项) sql 语句是: restore database mydata from disk = 'c:\temp\movedb.bak'  with norecovery 这时数据库就会变成恢复模式,这样你就可以一条一条的把trn文件添加进行恢复了. 语句是: restore log Mydata from disk =    "D:\Program Files\Microsoft S

一次SQL Server 10054 Troubleshooting

问题 对某个库新增了一个订阅节点,然后需要把一些应用切到新订阅库,以分散负载.当应用切换后,有一个应用每次启动不到30秒,总是报超时的错误,而error log中又没有任何记录: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.The statement has been terminated. 但是切回连接到原来的订阅

转载:Character data is represented incorrectly when the code page of the client computer differs from the code page of the database in SQL Server 2005

https://support.microsoft.com/en-us/kb/904803 Character data is represented incorrectly when the code page of the client computer differs from the code page of the database in SQL Server 2005 Email Print SYMPTOMS Consider the following scenario: In

如何用sql server数据库恢复.bak数据库备份

@hcy(黄灿奕) 之前有两次都恢复不了,折腾了很长时间,这一次碰到这样的问题,居然又忘了,又捣鼓了很长时间,现在记下来 1.右击SQL Server 2008实例下的“数据库”文件夹.就是与安全性.服务器对象同级的目录.选择新建数据库. 2.添加数据库名称,名称与备份的数据库名称一致,点击确定. 3.在“数据库”点击右键,选择还原数据库,在目标数据库选择刚才新建的数据库,选择源设备,选择浏览,备份位置选择添加.知道指定的bak文件,点击确定.把导入的bak文件勾选上,点击确定.数据就导入成功.

sql server启动服务和还原bak文件

sql server启动服务和还原bak文件, sql server启动要: mysql数据库备份是psc后缀文件, sql server还原数据库备份bak文件: 三张图简介明了: ok: 原文地址:https://www.cnblogs.com/wmqiang/p/10555553.html