select local_net_address as 服务器IP地址, local_tcp_port as 服务端口,client_net_address as 客户端IP地址 from sys.dm_exec_connections