[英]How to restore a SQL Backup .bak file on a different (new) server? SQL 2012
I remember myself restoring a db on linux side. 我记得自己在linux上恢复了数据库。 I used mysql dump and before I could restore this backup on the other server I had to create a DB with the same name.
我使用了mysql dump,然后才能在其他服务器上还原此备份,因此必须创建一个具有相同名称的数据库。
Now I am going to switch the server on windows side using SQL 2012. I am backupping many SQL DB's and call them for now db1.bak , db2.bak... 现在,我要使用SQL 2012在Windows端切换服务器。我要备份许多SQL DB,现在将它们称为db1.bak,db2.bak ...
When I now want to restore them on the new server, do I need to create a "structure" first with the same DB names or can I simply restore my DB's with the restore command one by one. 现在,当我想在新服务器上还原它们时,是否需要先使用相同的数据库名称创建一个“结构”,还是可以简单地使用restore命令逐个还原数据库。
Is there anything else I should prepare? 我还有什么要准备的吗? Thanks
谢谢
SQL Server数据库备份包含结构和数据,因此,如果您在一台SQL Server 2012服务器上运行了完整备份,则可以将其还原到另一台SQL Server 2012 +服务器实例上,而无需先创建一个空数据库。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.