I want to restore a database from a file (Tasks → Restore → Database; after I select from device and select file) via SQL Server Management Studio.
After that, I get th
In my case I had to check the box in Overwrite the existing database (WITH REPLACE) under Options tab on Restore Database page.
Overwrite the existing database (WITH REPLACE)
Options
Restore Database
The reason I was getting this error: because there was already an MDF file present for the database and it was not getting overwritten.
Hope this will help someone.