Solved

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

Posted on 2014-12-03
4
240 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Syntax issue with my Where Clause SQL 2012 20 38
SQL eating up memory? 16 39
SQL works but want to get the XML node data separately 11 28
Need help with another query 10 37
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
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.

756 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