How to get SQL Text and Query Plan for statements which are executing now
Posted by Karthick P.K on February 1, 2010
SELECT getdate() as "RunTime", st.text, qp.query_plan, a.* FROM sys.dm_exec_requests a CROSS APPLY sys.dm_exec_sql_text(a.sql_handle) as st CROSS APPLY sys.dm_exec_query_plan(a.plan_handle) as qp order by CPU_time desc
If you liked this post, do like us on Facebook at https://www.facebook.com/mssqlwiki and join our Facebook group https://www.facebook.com/mssqlwiki#!/groups/454762937884205/
Thank you,
Karthick P.K |My Facebook Page |My Site| Blog space| Twitter
then visit Emmanuel Adegbola to find the best advice on cheap mlm lead for you. cheap mlm lead said
Hey there are using WordPress for your blog platform?
I’m new to the blog world but I’m trying to get started and set up my own.
Do you need any html coding expertise to make your own blog?
Any help would be really appreciated!