简体   繁体   English

在存储过程中连接到另一个Sql Server 2008实例

[英]Connect to another Sql Server 2008 instance in a stored procedure

Lets assume we have 2 instances of SQL Server. 假设我们有2个SQL Server实例。 In the first instance I have a stored procedure that needs to connect to the second instance and run a query. 在第一个实例中,我有一个存储过程,该过程需要连接到第二个实例并运行查询。 Is it possible? 可能吗? How can I do that? 我怎样才能做到这一点?

创建一个链接服务器并在您的存储过程中对其进行寻址。

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

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