select c.local_net_address,c.connect_time,s.host_name,s.program_name,s.login_name from
sys.dm_exec_connections c inner join sys.dm_exec_sessions s on c.session_id=s.session_id
order by c.connect_time desc
sys.dm_exec_connections c inner join sys.dm_exec_sessions s on c.session_id=s.session_id
order by c.connect_time desc