I have SQL 2012 with SP1 installed on my computer. I made a backup of a database test.bak
.
I have a database with the name test2
which is the same database, but the data changed.
I want to restore test.bak
over test2
database.
I am always getting the error:
Error 3154: The backup set holds a backup of a database other than the existing database.
I tried:
I right-cliked on
test2 -> Restore database -> From device
I chose
test.bak
and checkedWith Replace
but I get the error.Then I tried to right-click on
test2 -> Restore file and filegroups
I chose
test.bak
and checkedWith Replace
but I get the error.
I can delete my old database and then restore my backup with the right name, but when I was using SQL 2008, I had no problem restoring over an existing database.
It seems that since I use SQL2012, I get this error a lot!