简体   繁体   English

链接SQL Server 2000和SQL Server 2008,这可能吗?

[英]Linking SQL Server 2000 and SQL Server 2008, is this possible?

I am writing stored procs for a new system in SQL Server 2008 but I need to also update data in an older db - SQL Server 2000. I have searched but haven't found any solution to this. 我正在SQL Server 2008中为新系统编写存储的proc,但是我还需要更新旧数据库-SQL Server 2000中的数据。我已经搜索过但没有找到任何解决方案。 Is it possible? 可能吗? What are my choices? 我有什么选择?

Thank you!! 谢谢!!

If you mean connect to and query against a SQL Server 2000 database, then yes, this is possible through the use of linked servers assuming that the two database servers are able to communicate with each other on the same network. 如果您是指连接到SQL Server 2000数据库并对其进行查询,那么可以,可以通过使用链接服务器来实现,前提是这两个数据库服务器能够在同一网络上相互通信。

See Linked Servers for more. 有关更多信息,请参见链接服务器

This has been asked and answered in another thread, but here's a great link to get you on your way: 这是在另一个线程中提出和回答的,但是这里有个不错的链接,可以助您一臂之力:

http://msdn.microsoft.com/en-us/library/ms188279.aspx http://msdn.microsoft.com/en-us/library/ms188279.aspx

The concept you're looking for is called a "linked server", which allows SQL Server to send SQL commands to a remote server. 您正在寻找的概念称为“链接服务器”,它允许SQL Server将SQL命令发送到远程服务器。

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

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