﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / SQL Server 2008 - General  / Find plan_handle / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Tue, 18 Jun 2013 17:34:37 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Find plan_handle</title><link>http://www.sqlservercentral.com/Forums/Topic1405474-391-1.aspx</link><description>Have figured it out by using this query:[code="sql"]SELECT UseCounts, Cacheobjtype, Objtype, TEXT, query_plan, plan_handleFROM sys.dm_exec_cached_plans CROSS APPLY sys.dm_exec_sql_text(plan_handle)CROSS APPLY sys.dm_exec_query_plan(plan_handle)WHERE TEXT like '%%'[/code]</description><pubDate>Thu, 10 Jan 2013 09:06:19 GMT</pubDate><dc:creator>Kwisatz78</dc:creator></item><item><title>Find plan_handle</title><link>http://www.sqlservercentral.com/Forums/Topic1405474-391-1.aspx</link><description>Hi - If I know the executing query whats the best way to get the plan_handle such that I can look at the plan in the plan cache?Thanks</description><pubDate>Thu, 10 Jan 2013 07:57:47 GMT</pubDate><dc:creator>Kwisatz78</dc:creator></item></channel></rss>