[英]Export table data from one SQL Server to another another table sitting on different server
如何从另一台服务器上的一个数据库表中获取数据并插入到另一台服务器上的另一个数据库表中...。
您可以在要将数据导入到的实例上创建链接服务器。 您将需要链接要从中导出数据的服务器。 以下是有关如何进行设置的几个链接。
设置链接服务器后,您可以执行以下操作:
INSERT INTO yourtable --table you are importing data into
SELECT *
FROM [server].[database].[schema].[table] --server you are exporting data from
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.