简体   繁体   English

SQL Server 数据库备份文件 (.bak) 文件已损坏

[英]SQL Server database backup file (.bak ) file gets corrupted

I have been working on a SQL Server database designing since long now and I have observed that when a .bak file is mailed or kept and downloaded from ftp site, it gets corrupted.我一直在从事 SQL Server 数据库设计工作,我观察到当 .bak 文件被邮寄或保存并从 ftp 站点下载时,它会被损坏。

When I try to restore, it gives me 3013 error code with messsage:当我尝试恢复时,它给了我 3013 错误代码和消息:

"Backup or restore operation terminating abnormally. “备份或恢复操作异常终止。

I tried RESTORE VERIFYONLY FROM DISK='C:\\abc.bak' as well but it says我也试过RESTORE VERIFYONLY FROM DISK='C:\\abc.bak'但它说

VERIFY DATABASE is terminating abnormally. VERIFY DATABASE 异常终止。

Any idea why this is happening and also, is there a better way to move the database file from one server to another (I do not have the access to source server)知道为什么会发生这种情况,以及是否有更好的方法将数据库文件从一台服务器移动到另一台服务器(我无权访问源服务器)

Thanks in advance.提前致谢。

For FTP make sure that you use binary mode.对于 FTP,请确保使用二进制模式。 Did you try to send plain attachment to yourself and compare the results with the files from sent and received email?您是否尝试向自己发送普通附件并将结果与​​已发送和已接收电子邮件的文件进行比较?

As mentioned here正如这里提到的

You may need to repair your mdf file first using some tools.您可能需要先使用一些工具修复您的 mdf 文件。 There are lot of tool available in the market.市场上有很多可用的工具。 There is tool called Restore MS SQL Database which is very useful to repair the mdf files.有一个名为Restore MS SQL Database 的工具,它对于修复 mdf 文件非常有用。

The issue might me because of corrupted transaction logs, you may use tool Restore MS SQL Database to repair your corrupted mdf file.问题可能是因为事务日志损坏,您可以使用工具恢复 MS SQL 数据库来修复损坏的 mdf 文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM