all groups > sql server connect > november 2004 >
You're in the

sql server connect

group:

Determin whether port number assigned dynamically or hardcoded


Determin whether port number assigned dynamically or hardcoded Steve Morgan
11/30/2004 8:55:09 AM
sql server connect:
I undstand that if you choose to dynamically assign a port number to an
instance this is a once only operation performed the first time that instance
is started and from then on it always attepts to use that port number.

Having just started with a new company I'm trying to work out if instance
port numbers were assigned dynamically or hardcoded during install as this
affect the client connection properties for connections (if hardcoded each
client needs to be configured with the port number rather than allowing an
instance to be resolved to a port).

Is there a regkey or anything that says how ports were assigned?

Steve

--
Steve Morgan
MCDBA
Re: Determin whether port number assigned dynamically or hardcoded Sue Hoegemeier
11/30/2004 1:30:16 PM
If you are looking for a registry key to determine if SQL
Server is listening on the default port, it's located at:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\MSSQLServer\SuperSocketNetLib\Tcp
That will give you the listening port.
You can also get the information from the SQL Server log.
You can also get the information using various network
commands, tools.

-Sue

On Tue, 30 Nov 2004 08:55:09 -0800, Steve Morgan
[quoted text, click to view]
Re: Determin whether port number assigned dynamically or hardcoded Steve Morgan
12/1/2004 2:11:02 AM
Hi Sue

Thnx for the reply but thats not my question - I know how to check the port
numbers currently being used.

What I need to work out is whether during the install the option to
dynamically assign instance port numbers was choosen or if they were
pre-choosen & hardcoded.

According to a technet article on connectivity problems this decision
affects whether on the client machine you can use the <server>\<instance
name> in your connection string or whether you have to use <server>\<port
number>

I'm having intermittent connection problems usine <server>\<instance name>
and want to know if the install port decision could be the root cause.

Steve


[quoted text, click to view]
Re: Determin whether port number assigned dynamically or hardcoded Sue Hoegemeier
12/1/2004 8:32:06 AM
Check the same area in the registry:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL
Server\<IYournstanceName>\MSSQLServer\SuperSocketNetLib\Tcp
The combination of the values for TCPDynamicPorts and
TCPPort will help you determine the setting. You can find
them outlined in the following article:
http://support.microsoft.com/?id=823938

-Sue


On Wed, 1 Dec 2004 02:11:02 -0800, Steve Morgan
[quoted text, click to view]
AddThis Social Bookmark Button