Solved

SQL Server Management Studio - How to connect to non-default instance on non-default port?

Posted on 2014-12-03
4
227 Views
Last Modified: 2014-12-03
Unfortunately, I have a need to expose SQL to the Internet for one of our SQL servers.

To help with security issues, I've disabled the SA account and have created a PAT in our firewall that will map a non-standard external port to 1433.

I have 2 instance of SQL server on the particular server.  Below is an example of my scenario:

PAT in firewall setup for external IP of 8.8.8.8 with a port of 6789 that maps to an internal IP of 192.168.10.1 on port 1433.

The 2 SQL instances are SQL01 and SQL01\MSSQL2008.  I am wanting to connect to the SQL01\MSSQL2008 instance.

In SSMS from an external source, I'm entering "8.8.8.8\MSSQL2008,6789" but it's connecting me to the default named SQL01 instance and not the SQL01\MSSQL2008 instance.

Am I missing something?  Thanks for any help in advance.
0
Comment
Question by:sciggs
  • 3
4 Comments
 
LVL 3

Accepted Solution

by:
Rezwan Islam earned 500 total points
ID: 40479920
May be configure SQL01\MSSQL2008 on a different Port other than 1433. Set up SNAT firewall rule.
0
 

Author Comment

by:sciggs
ID: 40479931
Internally I need 1433 to stay the same as we have multiple apps pointing to the instance.  I think the routing is fine, as I can connect to the default instance over 6789 remotely, just not the named instance.
0
 

Author Comment

by:sciggs
ID: 40479981
Nevermind.  Doing a bit more research and realizing that 1433 is for the default instance.  I think you are correct, if I change the named instance port  that should get what I need.
0
 

Author Closing Comment

by:sciggs
ID: 40480083
I was unaware that a named instance uses a dynamic port.  The answer helped me to do a bit more research and I was able to change the port for named instance to a static port different from 1433.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Best Approach for querying across several columns. 15 54
Export import database 4 40
Azure SQL Insert not working suddenly 11 18
SQL Query Syntax Join 4 25
In this article I will describe the Detach & Attach method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Viewers will learn how the fundamental information of how to create a table.

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now