(provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) Urgent Please help me| Admin Please rush it thanks a lot

Rate It (1)

Last post 04-06-2008 12:28 PM by norchnou. 4 replies.

Sort Posts:

  • (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) Urgent Please help me| Admin Please rush it thanks a lot

    04-04-2008, 3:32 PM
    • Loading...
    • norchnou
    • Joined on 01-08-2007, 1:41 AM
    • Posts 232

    I've just posted mywebsite andthis error keep being trhrown as soon as I access the DB

    I dont understand what is going on and if I dont get it working bu today will delivery date will expire and I will get in trouble...

    So anyone knows what is going on

    It says the following:

    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)

    Here is my con string :

    <add name="ASPNETDBConnectionString" connectionString="Data Source=p3swhsql-v09.shr.secureserver.net;Initial Catalog=myCatalog;User ID=MyID;Password='Mypassword"/>

    Thanks a lot

  • Re: (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) Urgent Please help me| Admin Please rush it thanks a lot

    04-05-2008, 7:00 AM

    In you string Password='Mypassword .. is that ' ..I think its by mistake..

    Just change the SQL Server Security : there is server Authentication which provides 2 radio buttons

    1.Windows Authntication

    2.Sql Server & windows authntication mode..

    in your case 1st one is selcted so just select the 2nd one and try to connect.

  • Re: (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) Urgent Please help me| Admin Please rush it thanks a lot

    04-05-2008, 11:12 PM
    • Loading...
    • norchnou
    • Joined on 01-08-2007, 1:41 AM
    • Posts 232

    Did I mention that my website is online?

    You thiunk that i should remove the ' sign in order for it to work?

    Will keep u posted

     

    Thanks

  • Re: (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) Urgent Please help me| Admin Please rush it thanks a lot

    04-05-2008, 11:46 PM
    Answer
    • Loading...
    • limno
    • Joined on 06-10-2005, 7:50 PM
    • Iowa, USA
    • Posts 3,305
    • Moderator
      TrustedFriends-MVPs

    From Sql Server 2005 Surface AREA Configuration, make sure your database engine service (MSSQLSERVER) is running and remote connection is set to allow both remote and local connections.

    (All programs>>SQL Server 2005>>Configuration Tools>>SQL Server Surface Area Configuration>> Surface Area Configuration For services and connections >> turn on services you want here under Database Engine -- Service and Remote Connections)

    Limno

  • Re: (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) Urgent Please help me| Admin Please rush it thanks a lot

    04-06-2008, 12:28 PM
    • Loading...
    • norchnou
    • Joined on 01-08-2007, 1:41 AM
    • Posts 232

    Hi,

    Thanks a lot, ot works perfectly now.

    Once again Thank you

Page 1 of 1 (5 items)
Microsoft Communities
Page view counter