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. Sql Connection Error!!!

Sql Connection Error!!!

Scheduled Pinned Locked Moved ASP.NET
databasehelpquestioncsharpasp-net
8 Posts 4 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
    kibromg 0
    wrote on last edited by
    #1

    Hi All, I am trying to open connection to Sql database server through an ASP.net application using an Ip address. connstrr="Data Source=111.11.111.20;Initial Catalog=TestData;User ID=Testdate;Password=Test" I get the following error on my ASP.net code Connection.open() line.. 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) Can any one advice me what is the problem? Thank you

    A P V 3 Replies Last reply
    0
    • K kibromg 0

      Hi All, I am trying to open connection to Sql database server through an ASP.net application using an Ip address. connstrr="Data Source=111.11.111.20;Initial Catalog=TestData;User ID=Testdate;Password=Test" I get the following error on my ASP.net code Connection.open() line.. 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) Can any one advice me what is the problem? Thank you

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      kibromg wrote:

      connstrr="Data Source=111.11.111.20;Initial Catalog=TestData;User ID=Testdate;Password=Test"

      Are you accessing local system or any remotes system server ? What is the SQL Server version ? is it SQL Server EXpress Edition ?

      Best Regards ----------------- Abhijit Jana View My Latest Article :- SpyNet : Your Network Spy "Success is Journey it's not a destination"

      K 1 Reply Last reply
      0
      • K kibromg 0

        Hi All, I am trying to open connection to Sql database server through an ASP.net application using an Ip address. connstrr="Data Source=111.11.111.20;Initial Catalog=TestData;User ID=Testdate;Password=Test" I get the following error on my ASP.net code Connection.open() line.. 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) Can any one advice me what is the problem? Thank you

        P Offline
        P Offline
        Paddy Boyd
        wrote on last edited by
        #3

        This is a very common error. By default SS2005 does not permit remote connections. A quick google of this error should provide some guides as to how to use the surface area configuration stuff.

        1 Reply Last reply
        0
        • A Abhijit Jana

          kibromg wrote:

          connstrr="Data Source=111.11.111.20;Initial Catalog=TestData;User ID=Testdate;Password=Test"

          Are you accessing local system or any remotes system server ? What is the SQL Server version ? is it SQL Server EXpress Edition ?

          Best Regards ----------------- Abhijit Jana View My Latest Article :- SpyNet : Your Network Spy "Success is Journey it's not a destination"

          K Offline
          K Offline
          kibromg 0
          wrote on last edited by
          #4

          Thank you for your response. I am using SQL2005 and accessing it remote server. Thank you

          A 1 Reply Last reply
          0
          • K kibromg 0

            Thank you for your response. I am using SQL2005 and accessing it remote server. Thank you

            A Offline
            A Offline
            Abhijit Jana
            wrote on last edited by
            #5

            is it SQL SERVER Express Edition ?

            Best Regards ----------------- Abhijit Jana View My Latest Article :- SpyNet : Your Network Spy "Success is Journey it's not a destination"

            K 1 Reply Last reply
            0
            • A Abhijit Jana

              is it SQL SERVER Express Edition ?

              Best Regards ----------------- Abhijit Jana View My Latest Article :- SpyNet : Your Network Spy "Success is Journey it's not a destination"

              K Offline
              K Offline
              kibromg 0
              wrote on last edited by
              #6

              Thank you onec again.Its not Express edition.

              K 1 Reply Last reply
              0
              • K kibromg 0

                Thank you onec again.Its not Express edition.

                K Offline
                K Offline
                kibromg 0
                wrote on last edited by
                #7

                Any Idea yet?

                1 Reply Last reply
                0
                • K kibromg 0

                  Hi All, I am trying to open connection to Sql database server through an ASP.net application using an Ip address. connstrr="Data Source=111.11.111.20;Initial Catalog=TestData;User ID=Testdate;Password=Test" I get the following error on my ASP.net code Connection.open() line.. 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) Can any one advice me what is the problem? Thank you

                  V Offline
                  V Offline
                  Vasudevan Deepak Kumar
                  wrote on last edited by
                  #8

                  Check this out http://support.microsoft.com/kb/914277[^]

                  Vasudevan Deepak Kumar Personal Homepage
                  Tech Gossips
                  A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

                  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