简体   繁体   English

SQL Server将数据从一个表复制/复制到另一个表

[英]SQL Server copy/replicate data from one table to another

I have 2 servers. 我有2台服务器。 I need to copy some columns from 4 different tables from server 1 into the corresponding (empty) tables in server 2. 我需要将服务器1的4个不同表中的某些列复制到服务器2中的对应(空)表中。

So basically, it's about replicating data from one table to another. 因此,基本上,这是关于将数据从一个表复制到另一个表。 How is this done best (and easiest)? 如何做到最好(最简单)? Also, how do I make sure that the copied/replicated data is updated at the same frequency as the source (which runs completely fine and automatically)? 另外,如何确保复制/复制的数据以与源相同的频率(完全正常且自动运行)更新?

I want to avoid using Linked Server. 我想避免使用链接服务器。

How is this done best (and easiest)? 如何做到最好(最简单)?

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM