SQL-Server: The backup set holds a backup of a database other than the existing

前端 未结 24 1886
天命终不由人
天命终不由人 2020-12-07 06:49

I am trying to restore a SQL Server backup file for my database, but it is throwing an error as follow:

The backup set holds a backup of a database ot

24条回答
  •  北荒
    北荒 (楼主)
    2020-12-07 07:33

    Some of you have highly over complicated this. I found this to be extremely simple.

    1) Create a database with the same name as your .bak file database name !Important

    2) right click the database | Tasks > Restore > Database

    3) Under "Source for restore" select "From Device"

    4) Select .bak file

    5) Select the check box for the database in the gridview below

    6) Under "Select a Page" on the right Select "Options"

    7) Select the checkbox labeled "Preserve the replication settings(WITH KEEP_REPLICATION)

    Now Go back to the General page and click OK to restore the database...That is it.

提交回复
热议问题