How to find the port for MS SQL Server 2008?

后端 未结 13 1779
广开言路
广开言路 2020-11-29 02:24

I am running MS SQL Server 2008 on my local machine. I know that the default port is 1433 but some how it is not listening at this port. The SQL is an Express edition.

13条回答
  •  悲&欢浪女
    2020-11-29 03:02

    Try this (requires access to sys.dm_exec_connections):

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

提交回复
热议问题