Because it is in another computer to the same name database backup, using the usual method to restore, prompt is not the same database, do not let restore, find the following method on the Internet to solve:
First, right-click the system database master, new query
Execute the following SQL code:
RESTORE DATABASE xxxfrom DISK = ' E:\DB\xxx.bak ' --bak file path with replace,move ' xxx ' to ' D:\Program Files\Microsoft SQL Se Rver\mssql10_50.mssqlserver\mssql\data\xxx.mdf ', --mdf file path move ' xxx_log ' to ' D:\Program Files\Microsoft SQL Server\mssql10_50.mssqlserver\mssql\data\xxx.ldf ' --ldf file path
Note: XXX is the name of the database you need to restore, Xxx.bak is the backup file you need to restore.
Second, the above method after successful execution, only some of the table structure has been restored, and there is no data in the table, then you can use the system default method and then use the Xxx.bak file to restore the database once you are done, you must select the overwrite restore OH.