Restore SQL Server database in same pc with different name

前端 未结 3 1040
轮回少年
轮回少年 2021-02-19 19:12

I have:

SQL Server 2008

Database Name: database1

I had taken backup from \"database1\" nearly one month ago. Now, by someway, \"database1\" is messed up

3条回答
  •  清歌不尽
    2021-02-19 19:24

    If you are using SSMS, you can:

    1)right click the Databases folder

    2)select Restore Database

    3)Enter any name you want in the "To Database" field - this will be the database name

    4)Select "From device" and find your backup file.

    You may need to specify different physical file names by selecting the Options page (I don't remember if SQL server will automatically prepopulate a different file name if a database already exists with the filenames contained in the backup.

提交回复
热议问题