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

前端 未结 24 1826
天命终不由人
天命终不由人 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:17

    This helped me to import the back-up file from the system drive

    1. Create a database with the same name(preferably) as your .bak file database name
    2. Right click the database > Tasks > Restore > Database
    3. Under "Source for restore" select "From Device"
    4. Select the .bak file selecting the path from the system
    5. Select the check box for the database in the list box below
    6. Under "Select a Page" on the right Select "Options"
    7. Select the checkbox labeled "Preserve the replication settings(WITH KEEP_REPLICATION)
    8. Select the checkbox for Overwrite the existing database(WITH REPLACE) Now Go back to the General page and click OK to restore the database...

提交回复
热议问题