I have the sql_handle and the plan_handle of a query. I got them from the result of querying "sys.dm_exec_query_stats".
Using sql_handle and/or plan_handle ,how can I get the user who run that query?
I have the sql_handle and the plan_handle of a query. I got them from the result of querying "sys.dm_exec_query_stats".
Using sql_handle and/or plan_handle ,how can I get the user who run that query?