copy a database within SQL Server Express?

前端 未结 13 2634
眼角桃花
眼角桃花 2020-12-07 22:02

I would like to make a copy of a database I have but keep it on the same server as a test database. However, everything I have found is to use the copy database wizard (I am

13条回答
  •  天涯浪人
    2020-12-07 23:04

    Try making a backup of your database, and restoring it into a brand new database.

    • Create new DB.
    • Make a full backup of your original.
    • Right click on your new DB, hit restore.
    • Navigate to your .BAK, and ensure the .mdf and .ldf match the new.

提交回复
热议问题