如何将表数据从一个Sql server复制到另一个Sql server [英] How to copy Table data from one Sql server to Another Sql server

查看:130
本文介绍了如何将表数据从一个Sql server复制到另一个Sql server的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我已经使用SQLAzureMW工具将我的架构迁移到我的azure服务器,因为我有大量数据要从源服务器复制到目标服务器。 SQLAzureMW BCP需要很长时间。

请建议最好的方法只将数据从源服务器复制到目标服务器。

Hi,

I have migrated my schema using SQLAzureMW tool to my azure server, as I am having huge data to copy from source to destination server. the SQLAzureMW BCP takes too long time.
Please suggest best way to copy only data from source to destination server.

推荐答案

首先你需要使用
Script Table As / Create Script 





然后在目标服务器上发出此T-SQL语句





then issue this T-SQL statement on targeted Server

INSERT INTO dbo.TableName
   SELECT *
   FROM [SourceServer].[SourceDatabase].dbo.TableName


为此数据迁移创建一个SSIS包,如果可能的话,它简单,快速且支持SQL服务器数据库
create an SSIS package for this data migration if possible , its easy,fast and support SQL server databases


这篇关于如何将表数据从一个Sql server复制到另一个Sql server的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆