Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi everyone,

I have just made a distributed query which queries two server database , i have linked both sql server using linked server storedprocedure and i have also enabled Named pipes , disabled firewall , enabled tcp/ip connection.

but when i run the query

I get error of Named pipes..

Please help me how to resolve this error.

Thanks & Regards,
Krunal Panchal
Posted
Comments
Sergey Alexandrovich Kryukov 27-Apr-11 11:52am    
Do you think "I get error" can tell anything? How can you imaging answering the question?
--SA
[no name] 28-Apr-11 0:37am    
Hello,
I am sorry that i have not included the whole of the error, but the error is as follows:
Named Pipes Provider: Could not open a connection to SQL Server [53].
I am not sure why i am getting this error, i have enabled everything like Named Pipes , Tcp/Ip etc.

Please help me out,
Regards,
Krunal panchal
Sandeep Mewara 27-Apr-11 12:23pm    
What error?
[no name] 28-Apr-11 0:37am    
Hello,
I am sorry that i have not included the whole of the error, but the error is as follows:
Named Pipes Provider: Could not open a connection to SQL Server [53].
I am not sure why i am getting this error, i have enabled everything like Named Pipes , Tcp/Ip etc.

Please help me out,
Regards,
Krunal panchal
Sandeep Mewara 28-Apr-11 0:39am    
You mean you have configured surface area configuration?

1 solution

Here you go

winerr 53 means "The network path was not found". If you got this message, it means the client stack cannot find the target machine. Here are possible reasons for this failure,
a) typo in the server name, or using "/" rather than "\" between server name and instance name, e.g. "myserver/myinst" is not correct.
b) name resolution to the server name is not correct, "ping -a yourserver" would tell if that's the case
c) The server machine is firewall'ed and file sharing is not in the exception list. You need put "File and Printer Sharing" in exception. (from below link)

Named Pipes Provider, error: 40 - Could not open a connection to SQL Server (Microsoft SQL Server, Error: XXX)[^]

SQL SERVER – FIX : ERROR : (provider: Named Pipes Provider, error: 40 – Could not open a connection to SQL Server) (Microsoft SQL Server, Error: )[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900