Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

find total amount of procedure cache (In GB) used by a stored procedure Expand / Collapse
Author
Message
Posted Tuesday, April 2, 2013 9:36 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Tuesday, November 18, 2014 9:31 AM
Points: 1,294, Visits: 2,991

Is there a way i can find total amount of procedure cache (In GB) used by a particular stored procedure? This would be on SQL 2005 and 2008.
Post #1437969
Posted Tuesday, April 2, 2013 10:02 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 10:03 AM
Points: 40,385, Visits: 36,829
With the exception of different set options, a procedure will only have a single plan in cache at a time, so measured more likely in kB than GB.

Query sys.dm_exec_cached_plans, cross apply to sys.dm_exec_query_plan and filter on the object id.



Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
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

Post #1437986
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse