Hi,
I always do a full backup of my database named "LMS".
Lets say now i want to have another database (new DB name is LMS1) that have exactly the same content as LMS.
I tried to use "Restore database" option but it seems to give me this error:
"You are attempting to overwrite an existing database. Check the force restore over existing database option to overwrite the existing database."
Then i go to check the force restore option but it give me another error:
"The file 'c:\program files\microsoft sql server\mssql\data\LMS_Data.MDF' cannot be overwritten. It is being used by database ''LMS.
File 'LMS_Data' cannot be restored to 'c:\program files\microsoft sql server\mssql\data\LMS_Data.MDF'. Use WITH MOVE to identity a valid location for the file.
..........
......
RESTORE DATABASE is terminating abnormally.
"
Please help.
Thanks!
Regards,
weihann.
I always do a full backup of my database named "LMS".
Lets say now i want to have another database (new DB name is LMS1) that have exactly the same content as LMS.
I tried to use "Restore database" option but it seems to give me this error:
"You are attempting to overwrite an existing database. Check the force restore over existing database option to overwrite the existing database."
Then i go to check the force restore option but it give me another error:
"The file 'c:\program files\microsoft sql server\mssql\data\LMS_Data.MDF' cannot be overwritten. It is being used by database ''LMS.
File 'LMS_Data' cannot be restored to 'c:\program files\microsoft sql server\mssql\data\LMS_Data.MDF'. Use WITH MOVE to identity a valid location for the file.
..........
......
RESTORE DATABASE is terminating abnormally.
"
Please help.
Thanks!
Regards,
weihann.