还原数据库:The backup set holds a backup of a database other than the existing database

还原数据库

 

还原bak备份Database的时候,出现如下错误框:

错误信息如下:

TITLE: Microsoft SQL Server Management Studio
------------------------------

Restore failed for Server '######'.  (Microsoft.SqlServer.SmoExtended)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.0.2531.0+((Katmai_PCU_Main).090329-1045+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Restore+Server&LinkId=20476

------------------------------
ADDITIONAL INFORMATION:

System.Data.SqlClient.SqlError: The backup set holds a backup of a database other than the existing 'ReportServer' database. (Microsoft.SqlServer.Smo)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.0.2531.0+((Katmai_PCU_Main).090329-1045+)&LinkId=20476

------------------------------
BUTTONS:

OK
------------------------------

解决方案:

1, 在窗口 "Restore Database – ####" 中,选择"Options", 选中"Overwrite the existing database (WITH REPLACE)" 即可。(若还有问题,须查看下面mdf和ldf文件路径是否正确)

 

posted @ 2013-05-27 15:50  hlb  阅读(544)  评论(0编辑  收藏  举报