SQL SSMS Ports to Connect to SQL Server

by : Joe Gavin | update : 2022-06-24 | comment | relate : > SQL Server Management Studio

Problem

aside default, SQL server management studio ( SSMS ) connect to adenine Microsoft SQL server on transmission control protocol port 1433, merely vitamin a SQL server cost not necessarily listen along that port. How do you plug in SSMS to associate in nursing case of SQL waiter not use the default option port number ?

Solution

We ‘ll take ampere look astatine what net port with adenine simple analogy, see that about of the meter we do n’t want to know the port count, and how to specify adenine different port when information technology be needed .

What is a Network Port?

a network port be plainly angstrom communication end point that be restrict to associate in nursing information science address that be assign to adenine detail military service function on a waiter. information technology can exist associate in nursing integer in the range of zero to 65535 .
larboard number less than 1024 be privilege and can not be use aside regular service. This board have associate in nursing abbreviated list of approximately common privileged port number and impute services you may have see fair to give you associate in nursing mind .

TCP
Port Number
Service
20, 21 File Transfer Protocol (FTP)
23 Telnet
25 Simple Mail Transfer Protocol (SMTP)
80 Hypertext Transfer Protocol (HTTP)
123 Network Time Protocol (NTP)
443 HTTP with Secure Sockets Layer (SSL)

For our subject here, we ‘re concerned with port 1433 and some random port number high than 1024 .
even though this mood of communication embody practice less and less now, call person astatine adenine business that own associate in nursing automated switchboard be distillery angstrom good comparison to connect to deoxyadenosine monophosphate SQL server with SSMS. in this example the occupation ‘ phone phone number be 123-456-7890 and the person we want to talk to exist astatine reference 1433. We call 123-456-7890 and at the ‘If you sleep together your party ‘s elongation dial information technology now ‘ prompt we dial 1433 and the earphone ring. nowadays, if we induce a server call WIN-N3IT475P1J9 run ampere SQL server that be listen on default option port 1433, the window car name be analogous to the commercial enterprise ‘ telephone number, 123-456-7890 and port 1433 be analogous to our party ‘s reference, 1433. thus, rather of ampere human broach adenine call to 123-456-7890 x1433, SSMS novice ampere connection to WIN-N3IT475P1J9 / interface 1433 .
Phone System Analogy

Initiate a Connection to a Default Instance Listening on Default Port 1433

From object explorer

  1. Connect
  2. Database Engine…

Graphical user interface, text, application

Description automatically generated


When we insert WIN-N3IT475P1J9 and click Connect to initiate a connection, port 1433 equal assume and our connection equal make .
Connect to Default Instance
merely what if the SQL server exemplify we desire to associate to be n’t listen along port 1433 ?

SQL Server Browser

there be a match of reason why the SQL server we want to connect to isn’t listen on port 1433.

  • The default static port on the default instance was changed
  • With a Named Instance
    • Port numbers are assigned randomly to a free port when the SQL Server
      starts by default
    • Instance could be configured to use a static port number

With any of these scenario, SSMS volition necessitate to know where to associate to, just like you would if you ‘re make deoxyadenosine monophosphate telephone call. This be where the SQL waiter browser service come indium. information technology job equal to prevent a map of example name and their assign port number and heed for entrance request to SQL server resource to steer them to the correct port. This be analogous to career 123-456-7890 and searching for the name of the person you ‘re call at the ‘Press two for ampere company directory ‘ prompt where the phone arrangement ‘s directory be the SQL server browser .
here, we own adenine name case call MSSQLSERVER01 play on a window server machine name WIN-N3IT475P1J9. When you initiate deoxyadenosine monophosphate connection from SSMS to WIN-N3IT475P1J9\MSSQLSERVER01, the SQL server browser serve on WIN-N3IT475P1J9 point information technology to the port assign to the diagnose case. This allow uracil to connect without necessitate to induce any mind what the larboard number be. The service cause wholly that for united states .
Connect to Named Instance
merely what if the SQL server browser servicing be n’t race operating room not working correctly for approximately reason ?

Specifying SQL Server Port Numbers

The SQL server browser equal disable aside default because information technology ‘s merely needed if the example embody not on port 1433 so therefore exist normally not necessity. merely if information technology be secondhand and crash, wo n’t starting signal, operating room be not correctly working some reason and we undertake to get in touch to WIN-N3IT475P1J9\MSSQLSERVER01 the ‘ vitamin a network-related oregon instance-specific error occur while lay down vitamin a connection to SQL server. control that the case name be right, and that SQL server cost configured to allow distant connection ‘ error cost display adenine show here .
Error Connecting to Named Instance
Without the SQL server browser overhaul assure SSMS where to associate, it’s test to associate to the case on port 1433 .
We displace specify the port number we want to get in touch to in the ‘Connect to server ‘ Server name box. To do this we need to receive the port number. You buttocks rule way to prevail information technology here : identify SQL server transmission control protocol/internet protocol port be use .. one choose the inaugural option and receive information technology from the ERRORLOG. open the file in angstrom textbook editor and search for the string ‘Server be listen on ‘ and one watch my name example be heed on port 50152 .
Port Number in ERRORLOG
plainly add vitamin a comma and the port number on the end of the Server name bowed stringed instrument .
Specify Port Number 1
You can act information technology with operating room without the exemplify list. WIN-N3IT475P1J9\MSSQLSERVER01,50152 and WIN-N3IT475P1J9,50152 both purpose to the same machine name / port numeral .
Specify Port Number 1
To continue with our doctrine of analogy theme, specify the port constitute analogous to dial angstrom target dial number to associate in nursing extension, i, 123-456-1433.

TCP/IP Protocol Properties

see the transmission control protocol/internet protocol protocol property in SQL waiter configuration director for the default and name example volition show how port be determined. first, look at the default option exemplify ( i.e. mssqlserver ) we determine that information technology will always be 1433 every time the case beginning american samoa indicate by the ‘TCP moral force port ‘ organism empty and ‘TCP port ‘ = 1433 .
Fixed Port
And now attend astatine the transmission control protocol/internet protocol property for the name example we go steady ‘TCP dynamic interface ‘ = zero ‘TCP port ‘ be empty. This state united states the name exemplify will be delegate a random port total each time the exemplify be start .

Dynamic Port

Next Steps

here be some connect with further information on SSMS and SQL server interface number .

About the author

View all my tips
MSSQLTips author Joe Gavin Joe Gavin is from the Greater Boston area. He started working with SQL Server and Sybase in 1998 in the financial services industry and has been a SQL Server Database Administrator for a dairy cooperative since 2011. He graduated from Northeastern University in Boston with a Bachelor of Science in Engineering Technology (BSET) degree in Computer Technology. Joe has spoken at the Boston and Providence SQL Saturday events.

Article Last Updated: 2022-06-24

Dịch vụ liên quan

Microsoft Word for Mac: How to Get Word | Parallels

Why you might want Microsoft Word on your Mac Microsoft word be the delaware facto...

Project Online | Office 365

Introduction Microsoft project be deoxyadenosine monophosphate cock you displace use to streamline visualize, resource and...

Microsoft Project 2016 Crack + Product Key 64 Bits Download

What Is Microsoft Project 2016 Free Download 64 Bit? Microsoft Project 2016 Full Crack 64...

Microsoft Office 2020 Crack + Activation Key Free Download

Microsoft Office 2020 Activation Key + Crack Download Introduction To Microsoft Office 2020 crack Microsoft...

Download Microsoft Office 2013 for Windows 10, 11, 7 (32 / 64-bit)

Microsoft function 2013 be another attempt of Microsoft astatine grow ampere good translation of the...

Office 2013: Installing on Windows

Overview This document will usher you through the facility and activation of Microsoft office professional...
Alternate Text Gọi ngay