client_app_name is empty in Extended Events output but present in sp_who2

  • I'm tracing activity on one database and would like to include the client_app_name in the output. However, for *some* applications, this information is blank. However, if I run sp_who2 at the same time, I can see the ProgramName column is populated.

    Is there somewhere else that extended events stores this information or is it just a disconnect between the two methods?

    Thanks.

  • Thanks for posting your issue and hopefully someone will answer soon.

    This is an automated bump to increase visibility of your question.

  • I always add such attributes to the action part of the ADD EVENT

    CREATE EVENT SESSION [DBA_purpose] ON SERVER
    ADD EVENT sqlserver.database_file_size_change (
    ACTION ( sqlserver.client_app_name,
    sqlserver.client_hostname,
    sqlserver.database_name,
    sqlserver.session_nt_username,
    sqlserver.sql_text )
    WHERE ( [database_id] = ( 48 ) ) -- We filter on database_id= of target db
    )

    Johan

    Learn to play, play to learn !

    Dont drive faster than your guardian angel can fly ...
    but keeping both feet on the ground wont get you anywhere :w00t:

    - How to post Performance Problems
    - How to post data/code to get the best help[/url]

    - How to prevent a sore throat after hours of presenting ppt

    press F1 for solution, press shift+F1 for urgent solution 😀

    Need a bit of Powershell? How about this

    Who am I ? Sometimes this is me but most of the time this is me

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply