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

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

    Also as important is to make sure that, your database name matches the data base name in the backup you are trying to restore. If it does not match, you will get the same error.

    0 讨论(0)
  • 2020-12-07 07:28

    Same issue with me.The solution for me is:

    1. Right click on the database.
    2. Select tasks, select restore database.
    3. Click options on the left hand side.
    4. Check first option OverWrite the existing database(WITH REPLACE).
    5. Go to General, select source and destination database.
    6. Click OK, that's it
    0 讨论(0)
  • 2020-12-07 07:28

    You can restore to a new DB, verify the file name syntax, it ll be in the log file, for the new SQL version ll be a "_log" suffix

    ad check the overwrite the existing database flag in option tab

    Fabio

    0 讨论(0)
  • 2020-12-07 07:29

    This causes always due to version incompatibility. follow these steps to solve:

    Step 1: Create a database with your preferred name. (In our case AdventureWorks)

    Step 2: Write click on the database and click on Tasks >> Restore >> Database…

    Step 3: On the restore screen go to third selection of Options. Now select the checkbox “Overwrite the existing database (WITH REPLACE)”

    Step 4: Click OK. It should successfully restore the database.

    Note: When you restore a database WITH REPLACE it will overwrite the old database.

    0 讨论(0)
  • 2020-12-07 07:29

    In the Options, change the "Restore As" file name to the new database mdf and ldf. It is referencing the source database .mdf and .ldf files.

    0 讨论(0)
  • 2020-12-07 07:29

    Im sure this problem is related to the files and folders permissions.

    0 讨论(0)
提交回复
热议问题