SQL Server 2008 R2:
For an existing database that you wish to "restore: from a backup of a different database follow these steps:
- From the toolbar, click the Activity Monitor button.
- Click processes. Filter by the database you want to restore. Kill all running processes by right clicking on each process and selecting "kill process".
- Right click on the database you wish to restore, and select Tasks-->Restore-->From Database.
- Select the "From Device:" radio button.
- Select ... and choose the backup file of the other database you wish to restore from.
- Select the backup set you wish to restore from by selecting the check box to the left of the backup set.
- Select "Options".
- Select Overwrite the existing database (WITH REPLACE)
- Important: Change the "Restore As" Rows Data file name to the file name of the existing database you wish to overwrite or just give it a new name.
- Do the same with the log file file name.
- Verify from the Activity Monitor Screen that no new processes were spawned. If they were, kill them.
- Click OK.