Hi @Mr Edge ,
Welcome to Microsoft Q&A!
Please try to run the following query to get the application name using the program_name column of sys.dm_exec_sessions:
SELECT c.session_id, s.program_name, s.login_name, s.status, st.text
FROM sys.dm_exec_connections c
INNER JOIN sys.dm_exec_sessions s ON c.session_id = s.session_id
CROSS APPLY sys.dm_exec_sql_text(most_recent_sql_handle) AS st
ORDER BY c.session_id
Best regards,
Seeya
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.