2012-03-28 117 views
1

一起执行服务器名称当我尝试执行下面的查询就显示错误无法与查询

Select * from [Domain].[Database Name].dbo.tblUser 

错误:

Could not find server 'Domain' in sys.servers. Verify that the correct server name was specified. If necessary, execute the stored procedure sp_addlinkedserver to add the server to sys.servers.

回答

1

像错误说,如果你想从连接一个SQL Server到另一个,您需要将其他服务器添加为链接服务器。

请参阅关于如何做到这一点的sp_addlinkedserver的定义。