简体   繁体   English

还原SQL Server数据库-失败:38(到达文件末尾。)

[英]Restore SQL Server Database - failed: 38(Reached the end of the file.)

I am running the following script: 我正在运行以下脚本:

RESTORE DATABASE [Name_V2] FROM DISK = N'C:\\20100920_Name_V2.bak' WITH MOVE N'Name_V2' TO N'C:\\Program Files\\...\\Name_V2.mdf', MOVE N'Name_V2_log' TO N'C:\\Program Files\\...\\Name_V2_log.ldf', REPLACE, STATS=1, FILE=1, NORECOVERY GO

When it runs, I get to 70 percent processed, and I get the following error: 当它运行时,我得到了70%的处理,并且出现以下错误:

Msg 3203, Level 16, State 1, Line 1 讯息3203,第16级,州1,第1行
Read on "C:\\20100920_Name_V2.bak" failed: 38(Reached the end of the file.) 在“ C:\\ 20100920_Name_V2.bak”上读取失败:38(到达文件末尾。)
Msg 3013, Level 16, State 1, Line 1 Msg 3013,第16级,状态1,第1行
RESTORE DATABASE is terminating abnormally. RESTORE DATABASE异常终止。

I'm not sure what the problem is. 我不确定是什么问题。 Can someone shed some light on it? 有人可以阐明一下吗? When I do a RESTORE VERIFYONLY on it, I get the same 'reached end of the file' error. 当我在其上执行RESTORE VERIFYONLY时,出现相同的“文件到达末尾”错误。 When I do a RESTORE FILELISTONLY FROM DISK, it comes back with the results listing the .mdf and .ldf. 当我从磁盘执行RESTORE FILELISTONLY时,返回的结果列出了.mdf和.ldf。

Thank you in advance! 先感谢您!

Looks like a corrupted or incomplete backup. 看起来是损坏的或不完整的备份。 See this post on msdn blogs http://social.msdn.microsoft.com/Forums/en/sqldisasterrecovery/thread/b57ae7c2-9f86-48e1-a356-ceb105181bf8 请参阅msdn博客http://social.msdn.microsoft.com/Forums/en/sqldisasterrecovery/thread/b57ae7c2-9f86-48e1-a356-ceb105181bf8上的这篇文章

Summary of thread linked.. 线程摘要

It appears that the backup file itself is corrupt, or the copy was incomplete. 似乎备份文件本身已损坏,或副本不完整。

Restore reached the end of the backup file before the database was fully restored. 在数据库完全还原之前,还原已到达备份文件的末尾。

发生此问题的原因是您使用的备份文件不完整。

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

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