Click here to Skip to main content
15,905,015 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have installed Microsoft SQL Server 2005 for my project but I can't connect to it while running my project because of following error

"An error has occurred while establishing a connection to the server. When connecting to SQL Serevr 2005,this failure may be caused by the fact that underthe default settings SQL Server does not allow remote connections.(provider: Named Pipes Provider,error: 40- Could not open a connection to SQL Server)."

I have tried following solutions to get over this but still getting the same error:
1. Installed MS SQL sever as network server.
2. Allowed remote connections in SQL Server 2005 Surface Area Configuration.

I think that the main problem is because absence of client protocols in SQL server network configuration. I cant find them in network configuration.
Please help to solve this problem and guide me to configure these client protocols in network configuration.
Thank you..!
Posted

1 solution

Hi,

you will find the activation of "named pipes" and "TCP/IP" protocol in "sql server configuration manager" console => "sql server network configuration" => "protocols for MSSSQLSERVER", enable them and restart your SQL server instance.

Check also you firewall, if the port 1433 for SQL server is enabled for sending and receiving

Bechir.
 
Share this answer
 
Comments
Parag Soni 4-Jan-15 5:25am    
That is exactly what my problem is. I cant find "protocols for MSSSQLSERVER" in "sql server configuration manager" console => "sql server network configuration".
how is this possible..??
BechirBenltaief 4-Jan-15 8:40am    
hiyou will find "sql server configuration manager" as program.
type SQLSERVERMANAGER9.msc
or search for it in your installed programs
Parag Soni 5-Jan-15 3:33am    
I know "sql server configuration manager". I have found it already. Thats not my problem. I guess You are not getting it. Please read my question once again carefully and help me.

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