Sys.dm_exec_connections - Returns information about the connections made to the instance of the SQL Server and the details of each connection.
SELECT t1.session_id
, t2.login_name
FROM sys.dm_exec_connections t1
INNER JOIN sys.dm_exec_sessions t2 ON t1.session_id = t2.session_id
Friday, November 27, 2009
Get current connections
at 7:37 PM
Labels: SQL Server 2005, SQL Server Tip
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment