How to find SQL Server running port?

后端 未结 13 740
再見小時候
再見小時候 2020-11-28 20:10

Yes I read this How to find the port for MS SQL Server 2008?

no luck.

telnet 1433

returns connection failed, so I must s

13条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-28 20:24

    This is the one that works for me:

    SELECT DISTINCT 
        local_tcp_port 
    FROM sys.dm_exec_connections 
    WHERE local_tcp_port IS NOT NULL 
    

提交回复
热议问题