简体   繁体   English

如何在其他(新)服务器上还原SQL Backup .bak文件? SQL 2012

[英]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.

相关问题 如何在 linux 上的 SQL 服务器中进行备份(.bak) - How to take backup(.bak) in SQL Server on linux 如何将.bak文件导入Microsoft SQL Server 2012? - How do I import a .bak file into Microsoft SQL Server 2012? 如何在sql server 2012中恢复大容量备份? - How to restore large size backup in sql server 2012? 可以在 SQL Server 2012 上还原 SQL Server 2014 的备份吗? - Possible to restore a backup of SQL Server 2014 on SQL Server 2012? SQL Server 数据库备份文件 (.bak) 文件已损坏 - SQL Server database backup file (.bak ) file gets corrupted 如何将bak文件转换为sql文件(将SQL bak文件转换为mysql支持)并执行该文件以自动还原 - How to convert bak file into sql file (sql bak file to mysql supported) and the execute that file to restore automatically 将SQL Server .bak备份文件连接到Visual Studio - Connecting a SQL Server .bak backup file to Visual Studio 从 .bak 文件恢复 sql server 无法获得独占访问权限 - restore sql server from .bak file Exclusive access could not be obtained SQL Server 2005-如何还原多个备份(.bak) - SQL Server 2005 - How to restore multiple backups (.bak) 还原多个SQL Server .bak文件 - Restore multiple SQL Server .bak Files
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM