Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 provider: Named Pipes Provider, error: 40

Author  Topic 

acbarberi
Starting Member

11 Posts

Posted - 2010-02-07 : 19:31:52
I'm getting error 40 whenever I try to connect to SQL Server 2005 from an ASP.NET page. I've got the page hosted through EasyCGI.com and they also have SQL Server 2005 on another server. They said that they do not allow remote connections, so they don't know how to fix my problem. What should I do?

This is my connection string:
Provider=SQLOLEDB;Data Source=VCNSQL;User ID=myUserID;Password=myPassword;Initial Catalog=myDatabase;

hey001us
Posting Yak Master

185 Posts

Posted - 2010-02-07 : 22:32:48
you can try this @ cmd:
telnet VCNSQL <sqlportno> (default 1433)
or
telnet <SQL server IP address> <sqlportno> (default 1433)
or
http://blogs.msdn.com/sql_protocols/archive/2007/03/31/named-pipes-provider-error-40-could-not-open-a-connection-to-sql-server.aspx


hey
Go to Top of Page
   

- Advertisement -