Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15694

Linked server error: Named Pipes Provider: Could not open a connection to SQL Server [5].

$
0
0

I have a stored procedure that calls a function, the function uses a linked server in it's query.

If I execute the stored procedure from the app or from SSMS on my laptop (connected to the host server)  I get a timeout (20 seconds) and the stored procedure logs the following error in my error handler table;

Named Pipes Provider: Could not open a connection to SQL Server [5].

If I execute the same stored procedure on the host server (SSMS local connection)  it is runssuccessfully in less than 1 second.

SQL Browser is not running (due to security) but I have enabled it to test but nothing changed
The linked server is using SQL Authentication
Linked server is the default OLE DB Provider for SQL Server

Server 1  (host): Win2K8, SQL2K8 R2
Server 2 (linked): Win2K8, SQL2K8 R2

The host server is running a non standard port but the linked server is running the default 1433.

Any idea's as to why this works locally but not remotely? 




Viewing all articles
Browse latest Browse all 15694

Trending Articles