[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 226
  • Last Modified:

Cannot connect to another SQL Server through SQL mangement Studio

Try to connect to another SQL 2008R2 server but it can't connect. Any idea ? Which port should it be excluded on the firewall on the remote server ? Is there any setting that I need to configure as well ?

3 Solutions
is this sql server inside or outside your network? if outside, the default port is 1433 if you don't specify a port in your connection.  So the remote server would need to have that port opened.  Or it can have a different port open but you would need to include in your connection, usually IP:port.

did you specify the sql instance on the remote server? it could be sqlexpress or a named instance.
Pushpakumara MahagamageVPCommented:
Check Whether remote connection allow in remote server, check on remote server  SQL Server configuration manager > SQL Server network configuration > Protocol for your instance ID, and then TCP IP, you have to enable TCP if it's not. you can check server port there.   if it's default instance TCP 1433 inbound need to open on remote Server and 1433 outbound need to open on your PC.
Randy Knight, MCMCommented:
Can you ping it?  Make sure name resolution is working.

If you've done the above and it's still not working, a good way to test the network connectivity is to telnet to the port.  You may have to add the telnet client as a Windows feature but then you can execute this replacing remoteserver with the server name or IP address and putting the correct port if it's not the default 1433.

telnet remotehost 1433

Open in new window

It should connect immediately and all you'll get is a blank screen.  But that will tell you that your network connectivity is working.

If it times out, then you have a network issue at some level.  Most likely a firewall.
AXISHKAuthor Commented:

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now