lundi 4 juillet 2016

Can't connect to linked server

Why can't I access the table when I have linked it to the server? What is wrong here? Thanks!

EXEC sp_addlinkedserver   
     @server='172.xx.xxx.xxABC', 
     @srvproduct='',
     @provider='SQLNCLI', 
     @datasrc='ABC_XYZ'

SELECT * FROM [172.xx.xxx.xxABC].[ABC_XYZ].DBO.TABLETOACCESS

I keep getting:

OLE DB provider "SQLNCLI10" for linked server "172.xx.xxx.xxABC" returned message "Login timeout expired".
OLE DB provider "SQLNCLI10" for linked server "1172.xx.xxx.xxABC" returned message "A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.".
Msg 53, Level 16, State 1, Line 0
Named Pipes Provider: Could not open a connection to SQL Server [53]. 

Aucun commentaire:

Enregistrer un commentaire