sql connection in c#

0 views
Skip to first unread message

chandu

unread,
May 20, 2008, 5:58:31 AM5/20/08
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
i hav made all the settings. i.e, adding instances to the firewall
exception, remote connection enabling. in tools i click database
connection and then i giv server name and databasename then i test the
connection. "test connection succeeded " message appeared. i giv the
connection string in c# like this server=visualmi-
fdcb38;database=chandu;integrated security=SSPI. buit when i run the
asp page the message is "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) "

Cerebrus

unread,
May 20, 2008, 12:26:42 PM5/20/08
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
This is a very common error. This page may have some information for
you :

http://tinyurl.com/3p9a54
Reply all
Reply to author
Forward
0 new messages