简体   繁体   English

如何将数据库复制到另一台服务器到 SQL 服务器中的特定磁盘上

[英]How to copy database to another server onto a specific disk in SQL Server

Help me please, and excuse me for my English.请帮助我,请原谅我的英语。

I need to translate a database from a server to other, but in a specific disk (disk H:) - how to do this?我需要将数据库从服务器转换到其他服务器,但在特定磁盘(磁盘 H:) 中 - 怎么做?

I have already done backup, but I have no to copied the database on the disk H:我已经做了备份,但是我没有复制H盘上的数据库:

INFORMATION信息

  • OS: Windows 10操作系统:Windows 10
  • Server OS: Windows Server 2016服务器操作系统:Windows 服务器 2016
  • DB: Microsoft SQL Server 2014数据库:微软 SQL 服务器 2014

Thanks in advance.提前致谢。

1- Take backup from source server using Restore option and restore to destination server using Restore Database option. 1- 使用“还原”选项从源服务器备份,并使用“还原数据库”选项还原到目标服务器。

2- Right Click on Database select on -> Generate script Choose Option - All Tables/Objects Click on Advance from set scripting option Make sure you have selected Schema & Data in Types of Data To Script 2- 右键单击数据库 select 上 -> 生成脚本 选择选项 - 所有表/对象从设置脚本选项中单击高级 确保已在要脚本的数据类型中选择架构和数据

Select other options also as per your need. Select 其他选项也可根据您的需要。

Then Execute this generated script on destination server change path accordingly as per your need.然后根据您的需要在目标服务器更改路径上执行此生成的脚本。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何将数据从一台服务器的视图复制到SQL Server数据库中另一台服务器的数据库表中? - How to copy data from a view of one server into the database table of another server in a SQL server database? SQL Server-如何将存储过程复制到另一个数据库 - SQL Server - How to Copy a Stored Procedure to Another Database 将Azure Sql数据库复制到另一台服务器 - Copy Azure Sql Database to another server 将SQL Server Express数据库复制到另一台计算机 - Copy SQL Server Express Database to Another Computer SQL Server数据库复制到另一台服务器(分离并附加) - SQL Server database copy to another server (detach and attach) SQL数据库从一台服务器复制到另一台服务器 - Sql database copy from one server to another server 当目标数据库中已存在表和约束时,如何将一个数据库复制到sql Server中的另一个数据库? - How to copy one database to another database in sql server when tables and constraints already exist in the target database? 如何在SQL Server代理作业中将数据库备份文件复制到另一台服务器 - How to copy a database backup file to another server in SQL Server Agent job SQL Server 2005:如何将数据库从一台服务器复制到另一台(手动/编程) - SQL Server 2005: how to copy database from one server to another (manually/programmatically) 要将数据从sql server数据库传输到同一数据库的另一个副本 - To transfer data from sql server database to another copy of the same database
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM