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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 provider: Named Pipes Provider, error: 40
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

11 Posts

Posted - 02/07/2010 :  19:31:52  Show Profile  Reply with Quote
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 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;

Posting Yak Master

185 Posts

Posted - 02/07/2010 :  22:32:48  Show Profile  Reply with Quote
you can try this @ cmd:
telnet VCNSQL <sqlportno> (default 1433)
telnet <SQL server IP address> <sqlportno> (default 1433)

Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 1.42 seconds. Powered By: Snitz Forums 2000