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. Database & SysAdmin
  3. Database
  4. error connecting to remote sql server

error connecting to remote sql server

Scheduled Pinned Locked Moved Database
databasesql-serversysadminhelp
5 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.
  • K Offline
    K Offline
    karthi84
    wrote on last edited by
    #1

    hi, when i try to connect to a remote sql server 2008 from my application i get the below 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)' but the remote sql server is accessible from other machines through the same application without any error. thanks & regards karthikeyan

    M 1 Reply Last reply
    0
    • K karthi84

      hi, when i try to connect to a remote sql server 2008 from my application i get the below 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)' but the remote sql server is accessible from other machines through the same application without any error. thanks & regards karthikeyan

      M Offline
      M Offline
      Marek Grzenkowicz
      wrote on last edited by
      #2

      Check this link[^]. Is there any other error number (apart from 40)?

      K 1 Reply Last reply
      0
      • M Marek Grzenkowicz

        Check this link[^]. Is there any other error number (apart from 40)?

        K Offline
        K Offline
        karthi84
        wrote on last edited by
        #3

        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) Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: 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) this was the complete error message. please note that i am connecting to sql server 2008 on a server and sql 2005 which is installed with visual studio 2005 is in the local machine.

        M 1 Reply Last reply
        0
        • K karthi84

          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) Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: 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) this was the complete error message. please note that i am connecting to sql server 2008 on a server and sql 2005 which is installed with visual studio 2005 is in the local machine.

          M Offline
          M Offline
          Marek Grzenkowicz
          wrote on last edited by
          #4

          karthi84 wrote:

          please note that i am connecting to sql server 2008 on a server

          Are you positive about this? I am asking because it seems weird to me that the error message mentions SQL Server 2005 (When connecting to SQL Server 2005 ...) when you are connecting to SQL Server 2008.

          K 1 Reply Last reply
          0
          • M Marek Grzenkowicz

            karthi84 wrote:

            please note that i am connecting to sql server 2008 on a server

            Are you positive about this? I am asking because it seems weird to me that the error message mentions SQL Server 2005 (When connecting to SQL Server 2005 ...) when you are connecting to SQL Server 2008.

            K Offline
            K Offline
            karthi84
            wrote on last edited by
            #5

            ya i am sure about that. i have installed sql 2008 ctp5 "Katmai" in my machine and have VS 2005 along with it. when i try to connect to the database through my application i get this error message. thanks & regards karthikeyan

            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