Re: How does IP1, IP2, IPAll work in the IP Adddresses tab?



As I replied to the mentioned topic, I will try to answer you to qour question here:

Does sys.dm_exec_connections get the information from those registries?

Well directly, no. The settings in the dynamic view is based on the runtime values of the system. Lets assume that you are starting SQL Server and it listens on port 1112. You connect with a client and query the view, you will the 1112. You disconnect again. Some administrator changes the port in the configuration manager (or the registry) to port 1444), but does not restart the service. Although the entry is a different one from the configured one, the service will listen to port 1112 until you do a new restart. You connect with a client and query the view, you will the 1112. You disconnect again. The service is restarted on the server. You connect with a client and query the view, you will the 1444.

So, it does not get its values directly from the registry.

HTH, Jens K. Suessmeyer.

---
http://www.sqlserver2005.de
---


"Peter" <Peter@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:9D419B7C-122E-4EC5-A27A-367E59AD6880@xxxxxxxxxxxxxxxx
Hi Rick,

Thanks for the information. I have just posted any thread "Registry for SQL
Server Express Instance". If you can reply that one, it will be great.
Does sys.dm_exec_connections get the information from those registries?

Peter

"Rick Byham, (MSFT)" wrote:

This dialog box is a bit confusing. Sorry about that.
Yes, I think your named instance is listening on dynamic ports and it is
currently listening on 1121. However there are problems updating this
information. I remember walking to different buildings with my laptop and
getting different IP addresses with the wireless connection, and then
checking to see if the information was updated. Often the answer was no.
Try connecting to the instance with TCP/IP and then running this query.
SELECT net_transport, local_net_address, local_tcp_port
FROM sys.dm_exec_connections
WHERE session_id = @@SPID;
That should tell you how you are really connected and provide the port
number that you are using.
--
Rick Byham (MSFT)
This posting is provided "AS IS" with no warranties, and confers no rights.

"Peter" <Peter@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1A090C79-C1EB-41D9-8772-0CF86407A7FB@xxxxxxxxxxxxxxxx
>I want to understand the IP Addresses tab of the TCP/IP Properties in >SQL
> Server Configuration Manager. The following settings are from the > default
> named instance of SQL Server 2005 Express (computername\SQLEXPRESS) on > a
> Windows XP SP2 machine with IP Address 192.168.1.151.
>
> IP1 has the following settings:
>
> Active: Yes
> Enabled: No
> IP Address: 192.168.1.151
> TCP Dynamic Ports: 0
> TCP Port: 1433
>
> IP2 has the following settings:
>
> Active: Yes
> Enabled: No
> IP Address: 127.0.0.1
> TCP Dynamic Ports: 0
> TCP Port:
>
> IPAll
>
> TCP Dynamic Ports: 1121
> TCP Port:
>
> Is the instance using Dynamic Port or Static Port? Normally, I will > see
> blank for TCP Port when TCP Dynamic Ports is 0 in IP1 but in this case,
> TCP
> Port has 1433.
>
> My guess is that the instance is using Dynamic Port and the port is > 1121.
>
> Besides checking the SQL Server log and the IP Addresses tab, how can I
> tell
> which port the instance is listening to?
>
>


.



Relevant Pages

  • RE: Using a dynamic request - response port
    ... port instead of dynamic port, then you can hopefully take advantage of ... "Saravana Kumar" wrote: ... You need to make sure, you are getting some response back from Sharepoint ... first, and then switch to dynamic ports, just to simplify your solution. ...
    (microsoft.public.biztalk.general)
  • Re: SQL Server 2008 remote connection problem
    ... The default instance should install with the fixed port 1433. ... Or if the new install is SQL Server Express and you are installing it with the name MSSQLSERVER which makes it the default instance, but Express still does dynamic ports. ...
    (microsoft.public.sqlserver.connect)
  • Re: RMI & connection refused
    ... The stub includes the dynamic port number. ... I am pretty sure that the design of RMI and the way it uses dynamic ports dates ... means the the client can be more trusting of the server, ...
    (comp.lang.java.programmer)
  • RE: secondary adress in a dynamic port
    ... Working with Dynamic Ports is rather limiting. ... I know you can not assign maps to the port nor do I think you can specify a secondary address. ... If he process is not successful you should get an exception. ...
    (microsoft.public.biztalk.general)
  • Re: Cant Send e-mails - Outlook 2003
    ... Rich, the answer to #1 is yes, at home Outlook sends messages just fine. ... I asked them about other port numbers, and they say they do not have any ... Your original settings might have been okay, but Verizon may have had server ...
    (microsoft.public.outlook.installation)