SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

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

acbarberi
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 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 - 02/07/2010 :  22:32:48  Show Profile  Reply with Quote
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
  Previous Topic Topic Next Topic  
 New 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 0.05 seconds. Powered By: Snitz Forums 2000