SQL数据传输 [英] SQL Data Transfer
本文介绍了SQL数据传输的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要将数据从一个表转移到另一台服务器中已被截断的同一表中。最简单的方法是什么?
I need to transfer data from one table to the same table in another server which has been truncated. What is the easiest way to do this?
推荐答案
设置链接的服务器,然后在目标数据库上使用以下内容:
Setup linked servers and then use the following on the destination database:
INSERT INTO existingTable (col1,col2..)
SELECT col1,col2...
FROM linkedserver.dbo.database.othertable
这篇关于SQL数据传输的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文