Creating new database from a backup of another Database on the same server?

前端 未结 4 1740
感动是毒
感动是毒 2020-12-07 18:32

I am trying to create a new database from an old backup of database on the same server. When using SQL server management studio and trying to restore to the new DB

4条回答
  •  -上瘾入骨i
    2020-12-07 19:09

    Think of it like an archive. MyDB.Bak contains MyDB.mdf and MyDB.ldf.

    Restore with Move to say HerDB basically grabs MyDB.mdf (and ldf) from the back up, and copies them as HerDB.mdf and ldf.

    So if you already had a MyDb on the server instance you are restoring to it wouldn't be touched.

提交回复
热议问题