Click here to Skip to main content
15,901,283 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi i have installed sql server 2005 and when i am going to open and connect it is showing this error i don't know why it is happening can any one help me .



Canonot Connect to SQLExpress
Additional information
an error ha occured while establishing a connection to the server, when connection to sql server 2005, this failure may be caused the fact that under the default setting sql server dies not allow remote connection,(provide:Name pipes, error 40-could not open coneection to sql server)(Microsfot Sql Server, error, 1231)
Posted
Comments
skydger 12-Oct-12 4:28am    
What connection string do you use?
What does SQL Server Configuration Manager show on SQL Server Network Configuration -> Protocols for SQLEXPRESS shows? Which protocols are enabled?

1 solution

That isn't a question that we can give you an absolute answer to: just a set of pointers to help you work it out yourself.
The problem is that we don't know anything about your set up - and I suspect nor do you! :laugh:

The first thing to do is to try and set up a connection using either SQL Server Management Studio or Visual Studio.

For the former, just start it, and a connection dialog will appear.
Select "Server Type" as "Database engine" and use the drop down by "Server Name" to select "browse for more". Hopefully that will at least identify the server itself. "Authentication" is down to you - you set the server up, after all!

In VS it is similar:
1) Open Server Explorer pane.
2) Right click "Data connections" and select "Add connection"
3) In the dialog that follows, select your DataSource, and database, specify the security info, and press the "Test connection" button.
4) When the connection works, press "OK"
5) Highlight your database in the Server Explorer pane, and look at the Properties pane. A working example of the connection string will be shown, which you can copy and paste into your app or config file.

Sorry to be vague, but we can't see anything about your system!
 
Share this answer
 
Comments
ridoy 12-Oct-12 4:57am    
+5

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