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 ?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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, MCMPrincipal ConsultantCommented:
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:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2008

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.