Restore SQL Server database in same pc with different name

前端 未结 3 1038
轮回少年
轮回少年 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:43

    You can rename your existing database to something like OriginalDB and then create an empty database called database1. Restore your backup in it. Now you can copy data from your Database1 (from bkp) to OriginalDB. After you are done, delete backup and rename original back to Database1

提交回复
热议问题