2012-03-28 48 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的定義。