Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

How to see Execution details of stored procedure using DMV

$
0
0
Hi, I would like to see execution details of stored procedure  but the following not showing. Could you please suggest. I can see them using profiler/trace/extended events but is there way to see using DMVs?
 SELECT TOP 10 
st.text,qs.*
FROM sys.dm_exec_query_stats AS qs with (nolock)
outer APPLY
sys.dm_exec_sql_text(qs.sql_handle) AS st 
--outer  APPLY
--sys.dm_exec_text_query_plan(qs.plan_handle,DEFAULT,DEFAULT) AS qp  
WHERE st.text like '%exec dbo.procedureName1%'


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>