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. Connecting Sql Server

Connecting Sql Server

Scheduled Pinned Locked Moved ASP.NET
helpdatabasesysadminsql-server
9 Posts 3 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.
  • V Offline
    V Offline
    vijaylumar
    wrote on last edited by
    #1

    hai i have a problem in connecting sqlserver my connection string is con = New SqlConnection("Network Library =DBMSSOCN; server = 210.211.225.48; database = CarDb; user id = sas; password =poi098;timeout = 60") but it is giving the following error A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.) please help me Thanks in advance Vijay Kumar

    S G 2 Replies Last reply
    0
    • V vijaylumar

      hai i have a problem in connecting sqlserver my connection string is con = New SqlConnection("Network Library =DBMSSOCN; server = 210.211.225.48; database = CarDb; user id = sas; password =poi098;timeout = 60") but it is giving the following error A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.) please help me Thanks in advance Vijay Kumar

      S Offline
      S Offline
      SeMartens
      wrote on last edited by
      #2

      Hi, at first you should check your connection string (the 'network library'-key seems not necessary to me). Have a look at http://www.connectionstrings.com/sql-server-2005[^] to verify. If this does not work check if the sql server allows remote connection. To do this, connect to the server (RDP) and open the network configuration of the sql server. There you should specify the allowed protocols. Also open the server in the management view and check if the flag is set to allow remote connections. For more details, have a look here: http://support.microsoft.com/?scid=kb%3Ben-us%3B914277&x=12&y=4[^] Regards Sebastian

      It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.

      V 1 Reply Last reply
      0
      • S SeMartens

        Hi, at first you should check your connection string (the 'network library'-key seems not necessary to me). Have a look at http://www.connectionstrings.com/sql-server-2005[^] to verify. If this does not work check if the sql server allows remote connection. To do this, connect to the server (RDP) and open the network configuration of the sql server. There you should specify the allowed protocols. Also open the server in the management view and check if the flag is set to allow remote connections. For more details, have a look here: http://support.microsoft.com/?scid=kb%3Ben-us%3B914277&x=12&y=4[^] Regards Sebastian

        It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.

        V Offline
        V Offline
        vijaylumar
        wrote on last edited by
        #3

        thanks for u r reply but i m not using SQL server 2005 im using sql server 2000 and how should i configure -- allowed protocols and remote connection

        S 1 Reply Last reply
        0
        • V vijaylumar

          thanks for u r reply but i m not using SQL server 2005 im using sql server 2000 and how should i configure -- allowed protocols and remote connection

          S Offline
          S Offline
          SeMartens
          wrote on last edited by
          #4

          Have a look here: http://www.sqlservercentral.com/Forums/Topic441949-5-1.aspx[^]

          It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.

          V 1 Reply Last reply
          0
          • S SeMartens

            Have a look here: http://www.sqlservercentral.com/Forums/Topic441949-5-1.aspx[^]

            It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.

            V Offline
            V Offline
            vijaylumar
            wrote on last edited by
            #5

            even it not solved the problem every thing is ok, remote connection is also allowed is there any thing else

            S 1 Reply Last reply
            0
            • V vijaylumar

              even it not solved the problem every thing is ok, remote connection is also allowed is there any thing else

              S Offline
              S Offline
              SeMartens
              wrote on last edited by
              #6

              Did you tried to use another connection string (without the network library)? Check if you can access the server from your client by using the management application of sql server.

              It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.

              1 Reply Last reply
              0
              • V vijaylumar

                hai i have a problem in connecting sqlserver my connection string is con = New SqlConnection("Network Library =DBMSSOCN; server = 210.211.225.48; database = CarDb; user id = sas; password =poi098;timeout = 60") but it is giving the following error A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.) please help me Thanks in advance Vijay Kumar

                G Offline
                G Offline
                Gamzun
                wrote on last edited by
                #7

                have you allowed sql server to make remote connection?

                Please don't forget to mark 'Good Answer', if you find it really a good one! Kashif

                V 1 Reply Last reply
                0
                • G Gamzun

                  have you allowed sql server to make remote connection?

                  Please don't forget to mark 'Good Answer', if you find it really a good one! Kashif

                  V Offline
                  V Offline
                  vijaylumar
                  wrote on last edited by
                  #8

                  hi thanks for u r reply i allowed sqlserver to make remote connection but i have a doubt my server ip address is changed then should i do any settings to sqlserver 2000 regarding this ip address How the new ip address will be connected to sqlserver 2000

                  G 1 Reply Last reply
                  0
                  • V vijaylumar

                    hi thanks for u r reply i allowed sqlserver to make remote connection but i have a doubt my server ip address is changed then should i do any settings to sqlserver 2000 regarding this ip address How the new ip address will be connected to sqlserver 2000

                    G Offline
                    G Offline
                    Gamzun
                    wrote on last edited by
                    #9

                    just check your ports are open which it's accessing remotely

                    Please don't forget to mark 'Good Answer', if you find it really a good one! Kashif

                    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