USE master GO SELECT ConSess.session_id, ConSess.login_name, WorLoGroName.name FROM sys.dm_exec_sessions AS ConSess JOIN sys.dm_resource_governor_workload_groups AS WorLoGroName ON ConSess.group_id = WorLoGroName.group_id WHERE session_id > 60 and name <> 'default';