Anupam Singh

Anupam Singh

  • 349
  • 4.9k
  • 1.7m

How SQL Server detect program name in sys.dm_exec_sessions

Jun 20 2014 4:03 AM
Hi,
 
Can somebody explain the how below mention query detect program_name eg: Microsoft SQL Server Management Studio,Microsoft SQL Server Management Studio - Query etc..
 
select login_name,program_name,host_name,nt_domain,nt_user_name from sys.dm_exec_sessions