Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Error 40

Error 40

Scheduled Pinned Locked Moved ASP.NET
databasehelpcsharpsql-servervisual-studio
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jijo BP
    wrote on last edited by
    #1

    Hi Friends, While I am trying to connect to the database server I am getting the following error. ERROR: 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) I checked my web.config file. I didnt find any errors in this. Please help me to solve this. I am using VS 2005 and SQL Server 2000 Thank you Jijo

    JIJO BABY - Lets Play C#

    C 1 Reply Last reply
    0
    • J Jijo BP

      Hi Friends, While I am trying to connect to the database server I am getting the following error. ERROR: 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) I checked my web.config file. I didnt find any errors in this. Please help me to solve this. I am using VS 2005 and SQL Server 2000 Thank you Jijo

      JIJO BABY - Lets Play C#

      C Offline
      C Offline
      coolestCoder
      wrote on last edited by
      #2

      Hi, In the error it is given -

      jijobaby wrote:

      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

      And you have not mentioned that whether the SQL Server you want to use is on same machine or LAN some where. If you are using a network SQL Server then this error may occur because the TCP/IP or Named Pipes may not be set in ur SQL Server. Please specify the complete details about the location of SQL Server.


      "A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder


      Anant Y. Kulkarni

      J 1 Reply Last reply
      0
      • C coolestCoder

        Hi, In the error it is given -

        jijobaby wrote:

        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

        And you have not mentioned that whether the SQL Server you want to use is on same machine or LAN some where. If you are using a network SQL Server then this error may occur because the TCP/IP or Named Pipes may not be set in ur SQL Server. Please specify the complete details about the location of SQL Server.


        "A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder


        Anant Y. Kulkarni

        J Offline
        J Offline
        Jijo BP
        wrote on last edited by
        #3

        Thank you Yes. I installed sql server in another machine.

        JIJO BABY - Lets Play C#

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups