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