恢复代码显示不相似的行为 [英] Restore code shows non similiar behaviour

查看:60
本文介绍了恢复代码显示不相似的行为的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在同一目录中有两个数据库备份文件"inventry.bak"和"sms.bak".
我写了一个代码来还原数据库.
但是代码对于inventry.bak正常工作,并显示sms.bak的服务器错误

i have two database backup file "inventry.bak" and "sms.bak" in the same directory.
i write a code to restore database.
but code works fine for inventry.bak and shows an server error for sms.bak
what is the issue behind it??

推荐答案

您必须已经弄清楚,如果该代码适用于一个备份文件,而不适用于另一个备份文件,则该代码必须很好,问题出在备份文件本身上.您应该检查备份文件的完整性,并查看格式是否正确,或者文件本身没有其他问题.

希望这对您有帮助
You have got to have figured, that if the code works for one backup file, and not the other, then the code must be fine and the problem lies with backup file itself. You should check the integrity of the backup file and see if the format is correct, or there is no other problems with the file itself.

Hope this helps


您可以按照此网址.........
使用C#和.NET 2.0的SQL Server 2005数据库备份和还原 [
Hi You Can follow this url.........
SQL Server 2005 Database Backup and Restore using C# and .NET 2.0[^]


这篇关于恢复代码显示不相似的行为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆