To obtain the TCP / IP port of a SQL Server database, several solutions are possible. Via a request on the server. Using the following query: SELECT DISTINCT local_tcp_port FROM sys.dm_exec_connections WHERE...