copy a database within SQL Server Express?

前端 未结 13 2631
眼角桃花
眼角桃花 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 22:56

    In SQL Server Express 2012 you can do following steps:

    1. Create a backup of the database you want to copy
    2. right-click "Databases" and select "Restore Files and Filegroups"
    3. Enter the name of the new database in the "To database" field.
    4. Select "From device" and then select the file that you backuped in the first step
    5. click "OK"

    this will "clone" the Database with the correct table settings such as the "default value" and "auto increase" etc.

提交回复
热议问题