How to Identify port number of SQL server

前端 未结 7 1635
天命终不由人
天命终不由人 2021-01-30 06:52

I Install SQL server in my system and I have to check on which port number SQL is working in my system

7条回答
  •  暖寄归人
    2021-01-30 07:20

    1. Open SQL Server Management Studio
    2. Connect to the database engine for which you need the port number
    3. Run the below query against the database

      select distinct local_net_address, local_tcp_port from sys.dm_exec_connections where local_net_address is not null

    The above query shows the local IP as well as the listening Port number

提交回复
热议问题