kodekracker
05-18-2007, 10:05 AM
when using this connection string
SqlConnection thisSQLconnection = new SqlConnection(@"Data Source=(local);Integrated Security=SSPI;Initial Catalog=northwind");
i get this error,
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)
what is wrong? how can i correct this?
SqlConnection thisSQLconnection = new SqlConnection(@"Data Source=(local);Integrated Security=SSPI;Initial Catalog=northwind");
i get this error,
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)
what is wrong? how can i correct this?