Solved

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

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Join & Write a Comment

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.
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, show how to setup several different housekeeping processes for a SQL Server.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

744 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