Solved

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

Posted on 2014-12-03
4
257 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Database Solutions Engineer FAQs

In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller single-server environments.

Question has a verified solution.

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

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

617 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