Quantcast
Channel: Can be stored procedures without cache?
Viewing all articles
Browse latest Browse all 40

Can be stored procedures without cache?

$
0
0

Hello Guys!

Today one procedure in my company after job for recompile, was no cache stored when I find with this select:

SELECT [cp].[refcounts] 
, [cp].[usecounts] 
, [cp].[objtype] 
, [st].[dbid] 
, [st].[objectid] 
, [st].[text] 
, [qp].[query_plan] 
FROM sys.dm_exec_cached_plans cp 
CROSS APPLY sys.dm_exec_sql_text ( cp.plan_handle ) st 
CROSS APPLY sys.dm_exec_query_plan ( cp.plan_handle ) qp
where st.objectid = OBJECT_ID('usp_xyzasdasdjkl')
OPTION (RECOMPILE);

Query Plan with NULL value

This is one bug? What you think about this?

Thanks!


Vithor da Silva e Silva | MCTS - SQL Server 2008, Implementation and Maintenance Site: http://www.vssti.com.br Blog: http://vssti.blogspot.com


Viewing all articles
Browse latest Browse all 40

Latest Images

Trending Articles





Latest Images