[Solved] System.Data.SqlClient.SqlError: The backup set holds a backup of a database other than the existing 'dbName' database http://blog.csdn.net/j2eevic/article/details/7408432 --返回由备份集内包含的数据库和日志文件列表组成的结果集. --主要获得逻辑文件名 USE master RESTORE FILELI…
 One: he backup set holds a backup of a database other than the existing 'xxdb' database Sometime when you try to restore the backup file on an existing database and receive the following error message: Restore failed for Server 'SQL Server name'.…
还原数据库时报以上错误,解决办法是: 1.删除新建的DB 2.直接右键Databases-->Restore Database 3.在弹出窗口中的To database栏位填写需要新建的DB名称(不存的名称) 4.选择From Device 5.选择DB的.bak备份文件 完成!…
今天恢复一个SQLServer2008R2,发现问题,然后通过园友的文章解决了问题,特记录备用 原文地址:http://www.cnblogs.com/adandelion/archive/2006/09/30/519534.html 今天在sqlServer20005 的management studio里使用bak文件还原数据库的时候,总是失败!       Restore failed for Server 'ADANDELI'.  (Microsoft.SqlServer.Smo) An…
sqlserver2008还原数据库时出现了3154错误,具体错误信息如下: 错误信息 The backup set holds a backup of a database other than the existing 'XXXXX'database. RESTORE DATABASE is terminating abnormally. (Microsoft SQL Server,错误: 3154) 解决方法 1. 不在数据库名字上右键点击还原,而是在上一层目录"数据库"上右键还…
1.当数据库已经建好在DB里,SQL Server 2005 和 SQL Server 2008使用.Bak文件还原的时候,会出现 error : "The backup set holds a backup of a database other than the existing" 查了网上的方法: 方法一[未验证] [sql] view plaincopy --返回由备份集内包含的数据库和日志文件列表组成的结果集. --主要获得逻辑文件名 --返回由备份集内包含的数据库和日志文件…
.做项目时遇到这种情形:原来的test_dev数据库,想复制出test_ft供测试用.此时备份test_dev出test_backup文件,想直接还原成test_ft时会报占用错误. 还原数据库:The backup set holds a backup of a database other than the existing database 因为数据库正在使用,所以无法获得对数据库的独占访问权 2.原因:(1)备份文件里面保存着原有数据库及文件名称信息,默认会还原成test_dev数据库,…
今天在sqlServer20005 的management studio里使用bak文件还原数据库的时候,总是失败!Restore failed for Server 'ADANDELI'.  (Microsoft.SqlServer.Smo)An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfoThe backup set holds…
     When I restored a database I got an error: "The backup set holds a backup of a database other than the existing database". I was every confused because I have done this operation many times. It never got error before.      When you encounte…
数据库恢复常见错误及解决 2009-04-13 11:25 1145人阅读 评论(0) 收藏 举报 数据库databasesqlserverusermicrosoftsql server 在sqlServer20005 的management studio里使用bak文件还原数据库的时候,总是失败! The backup set holds a backup of a database other than the existing 'AAA' database.RESTORE DATABASE…