viewing the compiled plans in cache

  • HI All

    Is the there a way to see the execution plan(the diagramatic form where I can see seeks,scans etc.) for the compiled plans stored in the proc cache?

    I can see the compiled plan using sys.syscachedobjects or sys.dm_exec_cached_plans but not the execution plan.

    Any ideas?

    Online Trainer For SQL DBA and Developer @RedBushTechnologies with 18 yrs exp.

  • Query sys.dm_exec_cached_plan CROSS APPLY sys.dm_exec_query_plan. The exec plan is in the second, in xml format.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • You are good and you are fast....thanks 🙂

    Online Trainer For SQL DBA and Developer @RedBushTechnologies with 18 yrs exp.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply