Remote connection Problem With SQL 2005 Thru VB Application

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • riyazrasheed1234
    New Member
    • Jul 2007
    • 15

    Remote connection Problem With SQL 2005 Thru VB Application

    Hi guys,

    Any one is there to help me?

    I have problem remotely connecting SQL 2005 thru my VB Aplication.

    I have set up a SQL Server 2005 to use for testing before moving to another production server.

    I have set it to to allow remote connections and use TCP IP only and have opened TCP port 1433 on the Windows XP firewall and am using the SQL Sever on Port UDP 3544 Also the Server Browser service is running. The server is connected directly to the internet on a static IP (eg. 10.0.0.3)

    When I try to connect to the database on another computer it fails.


    Thanks for any insight


    Riyaz
  • Purple
    Recognized Expert Contributor
    • May 2007
    • 404

    #2
    Hi Riyaz,

    Can you clarify - the remote server is remote ? Do you mean outside your Lan ie on the internet ? Or do you mean remote - not running on your local machine ie localhost ?

    Regards Purple

    Comment

    • riyazrasheed1234
      New Member
      • Jul 2007
      • 15

      #3
      Originally posted by Purple
      Hi Riyaz,

      Can you clarify - the remote server is remote ? Do you mean outside your Lan ie on the internet ? Or do you mean remote - not running on your local machine ie localhost ?

      Regards Purple
      Dear Purple,

      My Server Name is "Server" I need connect Via Internet, out side Lan remotely also would like to connect Lan as well.

      Previously I am using SQL 2000 I used following connection string to connect database inside Lan.

      OpenConnection = Ado_Open(MSSQLC onnString("Serv er", "xxx", "xxx", "xxxxx"))

      Best regards,
      Riyaz
      Last edited by Purple; Aug 15 '07, 04:18 PM. Reason: hiding connection details

      Comment

      • Purple
        Recognized Expert Contributor
        • May 2007
        • 404

        #4
        Can you connect to the database when you are inside the Lan or have you no connection to the database server at all ?

        Purple

        Comment

        • riyazrasheed1234
          New Member
          • Jul 2007
          • 15

          #5
          Originally posted by Purple
          Can you connect to the database when you are inside the Lan or have you no connection to the database server at all ?

          Purple
          Hi Parple,


          Not yet my first SQL Server 2005 connection i am trying to establish via internet. Also I would like to know connect Lan.

          Thanks!

          Regards,
          Riyaz

          Comment

          • Purple
            Recognized Expert Contributor
            • May 2007
            • 404

            #6
            Hi,

            Could I suggest you try it the other way round, if you sort out the connection across the LAN and then have problems via internet we will know its firewall / network issues.

            Starting outside the local network we could be chasing problems on network config / security / database.

            How are you planning to make the connection from the internet ?

            Regards Purple

            Comment

            • riyazrasheed1234
              New Member
              • Jul 2007
              • 15

              #7
              Originally posted by Purple
              Hi,

              Could I suggest you try it the other way round, if you sort out the connection across the LAN and then have problems via internet we will know its firewall / network issues.

              Starting outside the local network we could be chasing problems on network config / security / database.

              How are you planning to make the connection from the internet ?

              Regards Purple
              hi,
              here are some details
              have set it to to allow remote connections and use TCP IP only and have opened TCP port 1433 on the Windows XP firewall and am using the SQL Sever on Port UDP 3544 Also the Server Browser service is running. The server is connected directly to the internet on a static IP (eg. 10.0.0.3)

              thanks and regards
              riyaz

              Comment

              • Purple
                Recognized Expert Contributor
                • May 2007
                • 404

                #8
                Hi riyaz,

                I suggest you follow my earlier post and get the connection working from inside the Lan first - it will make problem solving when you try from the internet so much simpler, basically we will be left with networking and access issues.

                Regards Purple

                Comment

                • riyazrasheed1234
                  New Member
                  • Jul 2007
                  • 15

                  #9
                  Originally posted by Purple
                  Hi riyaz,

                  I suggest you follow my earlier post and get the connection working from inside the Lan first - it will make problem solving when you try from the internet so much simpler, basically we will be left with networking and access issues.

                  Regards Purple

                  Hi,

                  Thanks will try

                  riyaz

                  Comment

                  Working...