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. Cannot connect a remote SQL server 2005...

Cannot connect a remote SQL server 2005...

Scheduled Pinned Locked Moved Database
sysadmincsharpdatabasesql-servervisual-studio
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.
  • J Offline
    J Offline
    Jun Du
    wrote on last edited by
    #1

    Hi, I have one machine (PC-A) running XP Pro and SQL Server 2005, and another machine (PC-B) running XP Pro and Visual Studio 2005. Both are on my local network. They can see each other. On PC-B, I tried to connect to PC-A SQL Server, but failed. PC-A SQL Server is allowing remote connections. Windows Authentication is used for connections. What else did I not set right? Thanks!

    Best, Jun

    L 1 Reply Last reply
    0
    • J Jun Du

      Hi, I have one machine (PC-A) running XP Pro and SQL Server 2005, and another machine (PC-B) running XP Pro and Visual Studio 2005. Both are on my local network. They can see each other. On PC-B, I tried to connect to PC-A SQL Server, but failed. PC-A SQL Server is allowing remote connections. Windows Authentication is used for connections. What else did I not set right? Thanks!

      Best, Jun

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      AFAIK you may have to add rules to your server's firewall, so it allows inbound traffic on TCP port 1433, and possibly also UDP port 1434. If it still fails to connect, watch the error message closely; stuff it in the Google search box and/or show it here. :)

      Luc Pattyn [My Articles] Nil Volentibus Arduum

      J 1 Reply Last reply
      0
      • L Luc Pattyn

        AFAIK you may have to add rules to your server's firewall, so it allows inbound traffic on TCP port 1433, and possibly also UDP port 1434. If it still fails to connect, watch the error message closely; stuff it in the Google search box and/or show it here. :)

        Luc Pattyn [My Articles] Nil Volentibus Arduum

        J Offline
        J Offline
        Jun Du
        wrote on last edited by
        #3

        Thabks for reply. After I added TCP port 1433 and UDP port 1434 to PC-A firewall exceptions and tested connection, I got the error "Login failed for user 'PC-A\Guest'". How can I set up Windows Authentication login properly? In my case, it is not a domain environment. There is no common domain account, but individual accounts on each machine.

        Best, Jun

        L 1 Reply Last reply
        0
        • J Jun Du

          Thabks for reply. After I added TCP port 1433 and UDP port 1434 to PC-A firewall exceptions and tested connection, I got the error "Login failed for user 'PC-A\Guest'". How can I set up Windows Authentication login properly? In my case, it is not a domain environment. There is no common domain account, but individual accounts on each machine.

          Best, Jun

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          I don't know how to do that with Windows authentication; I did solve it once using SQL Authentication: just give your database and your app the same username and password, so tje DB can be accessed from everywhere by anyone running your app. May not be the safest way, but it works. :)

          Luc Pattyn [My Articles] Nil Volentibus Arduum

          J 1 Reply Last reply
          0
          • L Luc Pattyn

            I don't know how to do that with Windows authentication; I did solve it once using SQL Authentication: just give your database and your app the same username and password, so tje DB can be accessed from everywhere by anyone running your app. May not be the safest way, but it works. :)

            Luc Pattyn [My Articles] Nil Volentibus Arduum

            J Offline
            J Offline
            Jun Du
            wrote on last edited by
            #5

            Thanks. I added PC-A's "Guest" account to the SQL Server's "Security\Logins" group and mapped it to specific databases I want to connect. Here, I might have broken some security, but at least got it working for now.

            Best, Jun

            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