0

I'm a programmer working over a VPN.

I use local databases most of the time, but my local SQL Server 2005 has "Link Server" server object pointing at the production server.

This has been working great (albeit, slow over VPN) until the company had some IT people install a new firewall.

Now, my linked servers on my local database don't work when I try to access data through them (Example: a simple select command)

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

Furthermore,

I am able to connect to the databases just fine through SSMS or through SQLCMD on the command line.

I'm very confused as to why I am able to connect to the remote server by 2 methods, but not via linked server.

Any tips?

Thanks!

Alex Angas
  • 2,017
  • 2
  • 26
  • 37
Brian Webster
  • 1,123
  • 1
  • 18
  • 39

1 Answers1

2

It could be because your linked server is using the named pipes protocol to connect and the new firewall is not permitting that through. You can do one of 2 things:

  1. Ask the firewall admin(s) to allow incoming traffic on TCP Port 445 (the named pipes port)
  2. Change your linked server's provider to use TCP/IP instead of Named Pipes.

For #2, if you're using the SQL Native Client (SQLNCLI) you change the provider via SQL Server Configuration Manager on your workstation. Open that up, expand SQL Native Client Configuration and click on Client Protocols. Either move TCP/IP to a higher order than Named Pipes or, if it is already higher, disable Named Pipes.

The firewall folk might balk at your request to open port 445, so you may be stuck changing the protocol of your linked server provider.

squillman
  • 37,883
  • 12
  • 92
  • 146