Get current users and connection type


/ Published in: SQL
Save to your folder(s)



Copy this code and paste it in your HTML
  1. SELECT
  2. connection_id,
  3. session_id,client_net_address,
  4. auth_scheme
  5. FROM sys.dm_exec_connections

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.