[TroubleShootin]The backup set holds a backup of a database other than the existing 'xxdb' database.
2015-01-28 21:31
661 查看
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‘. (Microsoft.SqlServer.Smo)
Additional information:
System.Data.SqlClient.SqlError: The backup set holds a backup of a database other than the existing ‘xxdbe‘ database. (Microsoft.SqlServer.Smo)
Above error message indicates that you are going to restore a database on another database which are not the same database. For example, you have backup A database and try to restore the backup to B database,
the error will occur.
You can use the overwrite the existing database option while you’re restoring to solve the problem.
On Restore Database, select Options tab on the left menu. Then, check Overwrite the existing database on Restore options.
Now Restore the database. and problem is solved.
You can also delete the database and again restore that.
Two:
Use SQL to solve this issue.
USEmaster
RESTOREDATABASEReportServer
FROMDISK='C:\Program
Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Backup\ReportServer.bak'
WITHMOVE'ReportServer_db'TO'C:\Program
Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Backup\ReportServer.mdf',
MOVE'ReportServer_log'TO'C:\Program
Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Backup\ReportServer_log.ldf',
STATS=
10,REPLACE
GO
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‘. (Microsoft.SqlServer.Smo)
Additional information:
System.Data.SqlClient.SqlError: The backup set holds a backup of a database other than the existing ‘xxdbe‘ database. (Microsoft.SqlServer.Smo)
Above error message indicates that you are going to restore a database on another database which are not the same database. For example, you have backup A database and try to restore the backup to B database,
the error will occur.
You can use the overwrite the existing database option while you’re restoring to solve the problem.
On Restore Database, select Options tab on the left menu. Then, check Overwrite the existing database on Restore options.
Now Restore the database. and problem is solved.
You can also delete the database and again restore that.
Two:
Use SQL to solve this issue.
USEmaster
RESTOREDATABASEReportServer
FROMDISK='C:\Program
Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Backup\ReportServer.bak'
WITHMOVE'ReportServer_db'TO'C:\Program
Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Backup\ReportServer.mdf',
MOVE'ReportServer_log'TO'C:\Program
Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Backup\ReportServer_log.ldf',
STATS=
10,REPLACE
GO
相关文章推荐
- [TroubleShootin]The backup set holds a backup of a database other than the existing 'xxdb' database.
- SQL SERVER 2005恢复数据错误解决:The backup set holds a backup of a database other than the existing 'XXX' database
- The backup set holds a backup of a database other than the existing ‘dbName’ database
- SQL SERVER 2005恢复数据错误解决:The backup set holds a backup of a database other than the existing 'XXX' database
- System.Data.SqlClient.SqlError: The backup set holds a backup of a database other than the existing ‘dbName’ database
- SQL SERVER恢复数据错误解决:The backup set holds a backup of a database other than the existing
- 还原数据库:The backup set holds a backup of a database other than the existing database……
- 还原数据库:The backup set holds a backup of a database other than the existing database
- The backup set holds a backup of a database other than the existing xxx database.
- 关于SQL Server还原错误:The backup set holds a backup of a database other than the existing database.
- SQL SERVER 2008恢复数据错误解决:The backup set holds a backup of a database other than the existing
- [Solved] System.Data.SqlClient.SqlError: The backup set holds a backup of a database other than the existing ‘dbName’ database
- 3154:Sql2005 恢复sql2000 数据库备份时出现的"3154"错误的解决The backup set holds a backup of a database
- ADODB使用excel的"Cannot modify the design of table 'xxxx'. It is in a read-only database"的问题
- Some of the best Open Source Project's in VC++ & MFC
- Some of the best Open Source Project's in VC++ & MFC
- What is the ARGB int encoding of pixels in Java's AWT?
- The stack 'CSTACK' is filled to 92% (368 bytes used out of 400). The warning threshold is set to 90.%
- print 'welcome to masm!' in the center of the screen.
- Some of the best Open Source Project's in VC++ & MFC