| 437-991-3573 | Data Tier Services
Explore Tools
Experts in Microsoft SQL Server, Clusters, Always On, Migrations, ERP, Performance & Cloud

Find the Authentication scheme(SQL Server or Windows Authentication) used with all connections.
by BF (Senior MSSQL Operations - Enterprise, Cloud, Strategy)

T-SQL Solution:

SELECT s.Login_Name, s.Host_Name, Auth_Scheme, count(*) as 'Total Sessions'
FROM sys.dm_exec_connections AS C
JOIN sys.dm_exec_sessions AS S ON C.session_id = S.session_id
group by s.host_name, auth_scheme, s.login_name
order by 1 asc, 2 asc;

Authentication Protocols / Schema (default):

NTLM - Used if RDP to a SQL Server and Authenticate locally using Windows Authentication

Kerberos - Used if RDP to a SQL Server box and, using SSMS, Authenticate remotely to another SQL Server box using Windows Authentication

SQL - SQL Login Authentication