Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / DB Engine / SQL Server / March 2008

Tip: Looking for answers? Try searching our database.

SQL dynamically-allocated ports don't change after a restart?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Spin - 18 Mar 2008 11:53 GMT
Gurus,

Running SQL Server 2005 SP2 configured for Windows Authentication on a
two-node cluster running Windows Server 2003 SP2 inside a single Active
Directory domain.   SQL Server 2005 is configured for two named instances
and dynamically-allocated ports.  I noticed that these two
dynamically-allocated ports, one set for 2661 and the other 2749, keep using
those same port numbers even after a reboot.  I would have expected them to
change since they're "dynamically-allocated".  Am I wrong?

Signature

Spin

Tibor Karaszi - 18 Mar 2008 14:33 GMT
SQL Server will only use some new port if the one stored in the registry is in use by somebody else.

Signature

Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi

> Gurus,
>
[quoted text clipped - 4 lines]
> numbers even after a reboot.  I would have expected them to change since they're
> "dynamically-allocated".  Am I wrong?
Linchi Shea - 18 Mar 2008 15:06 GMT
By design, it doesn't keep changing its listening port. Here's what BOL says:

"Named instances, however, dynamically assign an unused TCP port number the
first time the instance is started. The named instance can also dynamically
change it's TCP port address on a subsequent startup if the original TCP port
number is being used by another application. SQL Server only dynamically
changes to an unused TCP port if the port it is currently listening on was
dynamically selected. "

Linchi

> Gurus,
>
[quoted text clipped - 5 lines]
> those same port numbers even after a reboot.  I would have expected them to
> change since they're "dynamically-allocated".  Am I wrong?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.