select SERVERPROPERTY('processid'),SERVERPROPERTY('productversion'),SERVERPROPERTY('ServerName') select host_process_id from sys.dm_exec_sessions where session_id = @@SPID select distinct name from sys.login_token where principal_id > 0 and type = 'WINDOWS GROUP'; SELECT ORIGINAL_LOGIN()