How do I use sys.dm_exec_connections
in combination with SUSER_SNAME()?
I want to see the username corresponding to each record in sys.dm_exec_connections.
sql serversql-server-2005
How do I use sys.dm_exec_connections
in combination with SUSER_SNAME()?
I want to see the username corresponding to each record in sys.dm_exec_connections.
Best Answer
As others have already pointed out the info you want is in
sys.dm_exec_sessions
. However if you want to pull from both DMVs this would work: