Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
derach2000
Starting Member
37 Posts |
Posted - 2013-02-07 : 04:40:24
|
Hi,I'v been having problems with databse restore using management studio 2012.I choose the source device, change the destination db name.I'v noticed, on the Files tab, Restore As path contain thedevice sour db name, not the new destination db name.Then I change the path manually for mdf and ldf.I get an error, database in use.It's like it is trying to overwrite the existing databse files.Any ideas?Armin Mahmutovicstudent of Clarion,C#,Crystal and SQL martial arts |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2013-02-07 : 04:54:21
|
are you trying to restore an existing db with new backup or are you trying to create a new db from backup?------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
|
|
derach2000
Starting Member
37 Posts |
Posted - 2013-02-07 : 09:54:20
|
i'm trying to create new db from the back up fileof an existing dbi also have, sql 2008 r2, sql 2008 and sql 2005and they all behaive normallywhen i choose the name for the new dbit automatically updates the database location path with the new nameArmin Mahmutovicstudent of Clarion,C#,Crystal and SQL martial arts |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2013-02-07 : 23:21:15
|
you need to browse the path of backup file and give it new db name and it will automatically create new db from backup------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
|
|
derach2000
Starting Member
37 Posts |
Posted - 2013-02-08 : 06:37:38
|
of course i browse for backu filegive the new db namebut it still is trying to overwrite the existing database filesfrom which the backup was madei ended up doing the job using a scriptArmin Mahmutovicstudent of Clarion,C#,Crystal and SQL martial arts |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2013-02-08 : 07:09:56
|
quote: Originally posted by derach2000 of course i browse for backu filegive the new db namebut it still is trying to overwrite the existing database filesfrom which the backup was madei ended up doing the job using a scriptArmin Mahmutovicstudent of Clarion,C#,Crystal and SQL martial arts
Are you trying to do it on same server where you've original db?Also did you give a different name for new db?------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
|
|
|
|
|
|
|