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. General Programming
  3. C#
  4. Connect to sql server 2000 remotely

Connect to sql server 2000 remotely

Scheduled Pinned Locked Moved C#
databasesysadmincsharpsql-serverhelp
8 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.
  • H Offline
    H Offline
    Hossein Afyuoni
    wrote on last edited by
    #1

    Hello World... I want to connect to a sql server 2000 db remotely(Lan Network). I write a c# test project and set server, my server IP but after run it ,give me this error: Time out, your server computer not response. I beleve, i must to configure my server sqlserver but ...!!!??? sry for my very bad en... :rolleyes: TanX World...

    P W 2 Replies Last reply
    0
    • H Hossein Afyuoni

      Hello World... I want to connect to a sql server 2000 db remotely(Lan Network). I write a c# test project and set server, my server IP but after run it ,give me this error: Time out, your server computer not response. I beleve, i must to configure my server sqlserver but ...!!!??? sry for my very bad en... :rolleyes: TanX World...

      P Offline
      P Offline
      Pedram Behroozi
      wrote on last edited by
      #2

      I think it is because of your ConnectionString, do you addressed your SqlDB correctly, in ConnectionString?

      While (true) { Human.isLearnable = true; }

      H 1 Reply Last reply
      0
      • P Pedram Behroozi

        I think it is because of your ConnectionString, do you addressed your SqlDB correctly, in ConnectionString?

        While (true) { Human.isLearnable = true; }

        H Offline
        H Offline
        Hossein Afyuoni
        wrote on last edited by
        #3

        my connectionstring is corrent because when I change my server Name to (local) my app haven't any error... ...:confused:

        1 Reply Last reply
        0
        • H Hossein Afyuoni

          Hello World... I want to connect to a sql server 2000 db remotely(Lan Network). I write a c# test project and set server, my server IP but after run it ,give me this error: Time out, your server computer not response. I beleve, i must to configure my server sqlserver but ...!!!??? sry for my very bad en... :rolleyes: TanX World...

          W Offline
          W Offline
          Wendelius
          wrote on last edited by
          #4

          Basically three possibilities: 1. Your SQL Server isn't configured to use TCP/IP, use Configuration Manager at server 2. Your connection string is faulty, bad ip-address, port etc 3. IP traffic isn't routed to server, for example because of an firewall

          The need to optimize rises from a bad design

          H 1 Reply Last reply
          0
          • W Wendelius

            Basically three possibilities: 1. Your SQL Server isn't configured to use TCP/IP, use Configuration Manager at server 2. Your connection string is faulty, bad ip-address, port etc 3. IP traffic isn't routed to server, for example because of an firewall

            The need to optimize rises from a bad design

            H Offline
            H Offline
            Hossein Afyuoni
            wrote on last edited by
            #5

            - In sqlserver I see tcp/ip connection & I ticked it... - If my connectionstring faulty ,i can not connect with it localy... my connectionstring:

            public void Connect()
            {
            string cs = "Server = 192.168.10.190; database = DB1; user=u1; password=123";
            con.ConnectionString = cs;
            con.Open();
            }

            W 1 Reply Last reply
            0
            • H Hossein Afyuoni

              - In sqlserver I see tcp/ip connection & I ticked it... - If my connectionstring faulty ,i can not connect with it localy... my connectionstring:

              public void Connect()
              {
              string cs = "Server = 192.168.10.190; database = DB1; user=u1; password=123";
              con.ConnectionString = cs;
              con.Open();
              }

              W Offline
              W Offline
              Wendelius
              wrote on last edited by
              #6

              Few questions: - is the SQL Server running on the same computer where you're running the app? - if you can connect to it locally but not remotely, what's the difference in connection string?

              The need to optimize rises from a bad design

              H 1 Reply Last reply
              0
              • W Wendelius

                Few questions: - is the SQL Server running on the same computer where you're running the app? - if you can connect to it locally but not remotely, what's the difference in connection string?

                The need to optimize rises from a bad design

                H Offline
                H Offline
                Hossein Afyuoni
                wrote on last edited by
                #7

                diference of it , is i change servername to (local)... I have some pc with Lan network in one of these I have sqlserver with my database, and in other pcs i have app for connect to that.

                W 1 Reply Last reply
                0
                • H Hossein Afyuoni

                  diference of it , is i change servername to (local)... I have some pc with Lan network in one of these I have sqlserver with my database, and in other pcs i have app for connect to that.

                  W Offline
                  W Offline
                  Wendelius
                  wrote on last edited by
                  #8

                  Then the three choices I listed are most common reasons. It's a very different situation to use IP than to connect to localhost. Few things you should check, - try to ping the IP-address - check on server side that the listening port is 1433 or if it isn't, specify the correct port in connection string - check on server side that the other pc can listen to port 1433 (no Windows firewall blocking) - check that it isn't a named instance on the server or if it is, specify the instance name in connection string

                  The need to optimize rises from a bad design

                  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