January 8, 2006 at 11:27 am
Hello,
We are using the following from a app server to try and connect to a SQL 2005 server: System.Data.SqlClient.SqlConnection
The connection string looks like the following:
"Persist Security Info=False;User ID=test;Password=test-123;Initial Catalog=testsb;Data Source=SQLDevDbTest01 "
We get the following message:
System.Data.SqlClient.SqlException: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
January 8, 2006 at 12:07 pm
You need to open the surface area configuration tool and click the option for remote connections and then click local and remote connections option. Use bol 2005 for more dtails
January 8, 2006 at 12:14 pm
Sorry - I should have included in my post that I already did that. The server is configured to allow Local and Remote connections over TCP/IP and named pipes.
January 8, 2006 at 12:21 pm
have you restarted the service?
January 8, 2006 at 1:05 pm
Yes;manually restarted each service as well as bounced the server.
January 9, 2006 at 2:19 am
Can you ping the server? Have you tried specifying IP-address instead of server name? Can you connect using TCP/IP? Is the server installed as default instance?
January 9, 2006 at 5:38 am
I was playing this morning with a SQL 2005 instance and I'd stopped the "SQL Service Broker" service and couldn't connect from my PC with a similar message.
A long shot, and it assumes the server is healthy and SQL is running
Cheers
January 9, 2006 at 8:25 am
January 9, 2006 at 8:34 am
I did not install service broker as part of the setup. I have not read anywhere where it is required to connect to the server from a client. Are you sayin it is needed?
January 9, 2006 at 8:42 am
January 9, 2006 at 7:21 pm
Viewing 11 posts - 1 through 10 (of 10 total)
You must be logged in to reply to this topic. Login to reply