static port

How to Configure static ports for SQL Server

If a SQL Server instance is configured with a static port , SQL Server only listens on the specified static port. But it is important to delete all entries for dynamic ports otherwise SQL Server will listen on the static and dynamic ports.
 Use Configure a Server to Listen on a Specific TCP Port (SQL Server Configuration Manager) http://msdn.microsoft.com/en-us/library/ms177440.aspx
Follow these details to the letter. Failure to follow the details – can leave a situation where the SQL Server is listening to the static and dynamic ports.
Notes on configuring a static port for SQL Server
1)     If you want to use just a static port , clean up the entry for the dynamic port . If the dynamic port entry is not cleared , the setting  continues to be used.
You can easily verify  by use the sys.tcp_endpoints view.

1.SELECT       *
2.FROM            sys.tcp_endpoints
 You can also verify in the SQL Server error log , where an entry similar to this one appears:

1.Server is listening on [ 'any'  45426].

2)     Need to be careful to assign port not used by another program . Use netstat to view all ports currently open
1.netstat -a -o –n 

Comments

Popular posts from this blog

current running queries in sql