copy a database within SQL Server Express?

前端 未结 13 2582
眼角桃花
眼角桃花 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:54

    In SSMS 2008 you can do this:

    1. Create a backup of the database you want to copy

    2. In SSMS, right-click 'Databases' and select 'Restore Database'

    3. Select the database you wish to copy from the 'From database' drop-down list in the 'Source for restore' section

    4. Enter the name of the new database in the 'To database' field in the 'Destination for Restore' section - this cannot be the name of an existing database.

    5. Click OK

    You're done! :)

提交回复
热议问题