Click here to Skip to main content
15,901,373 members
Please Sign up or sign in to vote.
1.44/5 (2 votes)
See more:
Hello everyone,
Iam facing a very peculiar problem. I installed sql server 2008 in my pc a day ago. Yesterday it was working fine. Today iam getting an error saying that "error 40:Could not open sql connection error 2"
I then tried with following
sql server management services -> sql server services. There were few services which were stopped. I tried starting those services but again i get an error
I tried following links too
http://stackoverflow.com/questions/6466974/unable-to-connect-to-sql-express-error-26-error-locating-server-instance-speci[^]
http://www.microsoft.com/products/ee/transform.aspx?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=-1[^].
Nothing seems to be working out. Can anybody help me out?
Posted

1 solution

Check the below link for the possible options you can take for this error

http://blogs.msdn.com/b/sql_protocols/archive/2007/03/31/named-pipes-provider-error-40-could-not-open-a-connection-to-sql-server.aspx[^]

and even check these also

errorwhenusingmssqlservernamedpipesprovidercouldnotopenaconnectiontosqlserver.htm[^]

http://forums.asp.net/t/1707702.aspx[^]


But i feel that your Named Pipe may be not enabled..check once and let me know...
 
Share this answer
 
v2
Comments
Rakshith Kumar 18-Oct-13 1:21am    
names pipe is enabled . Still iam getting the same error
[no name] 18-Oct-13 1:23am    
have you checked for the other options given there..??
Rakshith Kumar 18-Oct-13 1:25am    
Iam trying. Nothing seems working :(
[no name] 18-Oct-13 1:29am    
Check the updated links once and let me know..
Rakshith Kumar 18-Oct-13 1:41am    
for enabling the named pipes or any protocols all the services must be enabled right? In my configuration manager iam getting a message saying that no services are enabled . If i try enabling any service i get an error saying that "request failed or service did not respond in the timely fashion"

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