Hello experts,
I am new to this ...so I need your help.
After creating a database by adding a new database to my project in C# ( Visula Studio 2008), by the following :
SqlConnection conn = new SqlConnection();
conn.ConnectionString = "server=localhost;database
=nitsdb;co
nnect timeout=50";
I get the following error:
System.Data.SqlClient.SqlE
xception: 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.
How can I get past this?
Thanks
Start Free Trial