当我想要恢复一个Database的时候,出现如下错误框:

 [Solved] System.Data.SqlClient.SqlError: The backup set holds a backup of a database other than the existing ‘dbName’ 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)" 即可

[Solved] System.Data.SqlClient.SqlError: The backup set holds a backup of a database other than the existing ‘dbName’ database

相关文章:

  • 2021-08-18
  • 2022-01-21
  • 2022-12-23
  • 2021-10-09
  • 2022-12-23
  • 2022-02-09
  • 2022-03-09
  • 2021-12-04
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-19
  • 2022-12-23
  • 2021-05-08
相关资源
相似解决方案