|
|
|
Valued Member
      
Group: General Forum Members
Last Login: Friday, June 14, 2013 9:22 AM
Points: 63,
Visits: 395
|
|
If I am using dynamic port settings on my sql server instance, I need the sql browser service to run and listen over port 1434 for incoming requests.
If I am using a static default port of 1433, the browser service is not needed.
However, if I set a non-default port, say 1638, for my SQL server to listen over, do I need the SQL Browser to listen for incoming requests, so it can look up 1638???
My understanding is, as a connection coming into a sql server instance, if it is not using dynamic ports, and not using the default port, I MUST KNOW the port SQL Server is listening on and use that port in my connection string to make a succesfful connection.
I always thought the browser service was only needed for dynamic ports.
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Yesterday @ 5:07 AM
Points: 327,
Visits: 532
|
|
"However, if I set a non-default port, say 1638, for my SQL server to listen over, do I need the SQL Browser to listen for incoming requests, so it can look up 1638???" -- Browser service means to direct client request to dynamic ports. If you intend to use 1638 (static port), use it in connection string. So that browser service will be bypassed.
My understanding is, as a connection coming into a sql server instance, if it is not using dynamic ports, and not using the default port, I MUST KNOW the port SQL Server is listening on and use that port in my connection string to make a succesfful connection. -- Yes
I always thought the browser service was only needed for dynamic ports. -- yes, its not needed for a static port.
|
|
|
|
|
SSCoach
         
Group: General Forum Members
Last Login: Today @ 12:32 AM
Points: 18,855,
Visits: 12,439
|
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Yesterday @ 2:58 PM
Points: 5,242,
Visits: 11,259
|
|
Firstly, are these questions related to firewall configuration for a SQL server instance?
alanspeckman (8/7/2012) If I am using dynamic port settings on my sql server instance, I need the sql browser service to run and listen over port 1434 for incoming requests. Yes and this is really the only way as the dynamic port could change each time the instance restarts
alanspeckman (8/7/2012)
If I am using a static default port of 1433, the browser service is not needed. That is correct
alanspeckman (8/7/2012) However, if I set a non-default port, say 1638, for my SQL server to listen over, do I need the SQL Browser to listen for incoming requests, so it can look up 1638??? If you'll be connecting directly to the IP,port then you don't need the browser service, it's only needed when connecting using the instance name
alanspeckman (8/7/2012) My understanding is, as a connection coming into a sql server instance, if it is not using dynamic ports, and not using the default port, I MUST KNOW the port SQL Server is listening on and use that port in my connection string to make a succesfful connection. See above
alanspeckman (8/7/2012)
I always thought the browser service was only needed for dynamic ports. No, although it is only really more relevant when dynamic ports are used as they can change at any restart
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs"
|
|
|
|
|
Valued Member
      
Group: General Forum Members
Last Login: Friday, June 14, 2013 9:22 AM
Points: 63,
Visits: 395
|
|
SQLRNNR (8/7/2012) Keep in mind that should you ever need to use the dedicated admin connection, the browser service will need to be running and 1434 will need to be accessible.
Didn't know that, thanks!
|
|
|
|
|
Valued Member
      
Group: General Forum Members
Last Login: Friday, June 14, 2013 9:22 AM
Points: 63,
Visits: 395
|
|
So,
Browser service needed: 1. If connecting using only the instance name with a non-standard port 2. If connecting to an instance that uses dynamic ports, such as a named instance because it is configured to use dynamic ports initially when installed.
Browser service not needed 1. If connected to an instance using standard port 1433? 2. If using the IP address and the port number of the sql server instance.
Is #1 in both categories above correct? If not, can you please correct me?
Thanks, Alan.
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Yesterday @ 2:58 PM
Points: 5,242,
Visits: 11,259
|
|
alanspeckman (8/9/2012) So,
Browser service needed: 1. If connecting using only the instance name with a non-standard port 2. If connecting to an instance that uses dynamic ports, such as a named instance because it is configured to use dynamic ports initially when installed. yes and yes
alanspeckman (8/9/2012) Browser service not needed 1. If connected to an instance using standard port 1433? 2. If using the IP address and the port number of the sql server instance.
Is #1 in both categories above correct? If not, can you please correct me?
Thanks, Alan. again, yes and yes
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs"
|
|
|
|
|
Valued Member
      
Group: General Forum Members
Last Login: Friday, June 14, 2013 9:22 AM
Points: 63,
Visits: 395
|
|
Thank you all for reading and thank you Perry for your replies. Great community here.
One last question.
Is it possible for 2 SQL Server instances running on the same server to share the same port? I have tested this and it isn't possible from what I have tested so far.
Is it possible?
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Yesterday @ 2:58 PM
Points: 5,242,
Visits: 11,259
|
|
alanspeckman (8/13/2012)
Thank you all for reading and thank you Perry for your replies.  Great community here. One last question. Is it possible for 2 SQL Server instances running on the same server to share the same port? I have tested this and it isn't possible from what I have tested so far. Is it possible? No, they would need a separate IP address stacked on the NIC or a totally separate NIC
For example if i have a server with a single NIC, i have 2 IP addresses stacked as
10.10.10.41 255.255.255.0 10.10.10.42 255.255.255.0
i could then set one instance to listen on
10.10.10.41, 1433
and another on
10.10.10.42, 1433
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs"
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Thursday, June 06, 2013 2:49 PM
Points: 2,118,
Visits: 734
|
|
At the risk of adding confusion you can connect to an instance using a nonstandard (not dynamic) port and the server name without the browser service.
example: Servername.domainname\instancename,port_number
|
|
|
|