简体   繁体   English

如何将表从SQL 2000复制到SQL 2008?

[英]How can I replicate a table from SQL 2000 to SQL 2008?

I have a table on a SQL Server 2000 database, which I want copied verbatim to a 2008 server. 我在SQL Server 2000数据库上有一张表,我想将其逐字复制到2008服务器上。

I tried to do it manually with INSERT/UPDATE triggers, but this technique runs in a distributed transaction, which does not work because I apparently have to enable MSDTC and the firewall; 我尝试使用INSERT / UPDATE触发器手动执行此操作,但是此技术在分布式事务中运行,该操作不起作用,因为显然必须启用MSDTC和防火墙。 I don't want to do any of that. 我不想做任何事情。

Are there any other ways to replicate that table (in real-time) to the 2008 server? 还有其他方法可以将该表实时(实时)复制到2008服务器吗?

My first question would be do you really need it to be replicated? 我的第一个问题是您是否真的需要复制它?

If you want to reference it real-time in Sql 2008, just do a linked server with a Synonym . 如果要在Sql 2008中实时引用它,只需使用Synonym做一个链接服务器 This will make the table act like it is part of your schema, with minor limitations. 这将使表的行为像是您的架构的一部分,并有一些限制。

Have you tried to create a scheduled DTS/SSIS package to do the work? 您是否尝试过创建预定的DTS / SSIS包来完成这项工作?

Is it copying or replication? 是复制还是复制? Copying implies a one-time action while replication implies an open-ended period of time during which these tables will be synchronized. 复制意味着一次性操作,而复制意味着开放时间段,在这些时间段内将同步这些表。

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

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