January 30, 2014 at 10:17 pm
Comments posted to this topic are about the item Execution Plans
January 30, 2014 at 10:19 pm
Nice question, Steve.
---------------------------------------------------
"Thare are only 10 types of people in the world:
Those who understand binary, and those who don't."
January 31, 2014 at 1:45 am
This was removed by the editor as SPAM
January 31, 2014 at 2:40 am
Very handy query to have but what is the best way to filter the result set. For example you are interested in plans related to a certain table? I think that could be very useful to know.
January 31, 2014 at 2:56 am
Nice one. I guessed this by simply assuming it was the most complicated looking one!
January 31, 2014 at 5:22 am
Nice question, thanks.
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
January 31, 2014 at 6:12 am
nice question and a very handy query as well 🙂
January 31, 2014 at 6:24 am
Good question that's always on point. Nice way to end the week.
January 31, 2014 at 8:24 am
sunil.lath 98534 (1/31/2014)
Very handy query to have but what is the best way to filter the result set. For example you are interested in plans related to a certain table? I think that could be very useful to know.
This is how I do that:
SELECT cp.objtype AS ObjectType,
OBJECT_NAME(st.objectid,st.dbid) AS ObjectName,
cp.usecounts AS ExecutionCount,
st.TEXT AS QueryText,
qp.query_plan AS QueryPlan
FROM sys.dm_exec_cached_plans AS cp
CROSS APPLY sys.dm_exec_query_plan(cp.plan_handle) AS qp
CROSS APPLY sys.dm_exec_sql_text(cp.plan_handle) AS st
WHERE st.TEXT like '%xxxxxx%' <-- Table Name here
January 31, 2014 at 8:29 am
Thanks for the great question covering the DMV's, XML and Execution plans. 🙂
February 2, 2014 at 6:57 am
Steve,
I use this a lot. I love DMV\DMF. Thanks for the question.
+1
February 3, 2014 at 7:10 am
Nice and easy one..
Thanks Steve..
February 3, 2014 at 12:15 pm
Nice, nice. Thanks, Steve!
February 3, 2014 at 2:01 pm
EZ PZ.
Thanks.
Here is an article that discusses a query to see these execution plans too - http://www.sqlservercentral.com/articles/Execution+Plans/103484/
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
February 6, 2014 at 2:38 am
Good question, thanx.
Thanks & Best Regards,
Hany Helmy
SQL Server Database Consultant
Viewing 15 posts - 1 through 15 (of 16 total)
You must be logged in to reply to this topic. Login to reply