September 11, 2007 at 5:28 am
Hi,
Is there any wat to ensure that an SP's execution plan is actually stored in buffer ? Is there any way to view the same?
The SP is not defined with 'Recompile' option.
Regards,
Kaushik
September 11, 2007 at 8:45 pm
Kaushik,
Are you trying to look at what stored procs are available in the cache buffers?
Not sure if you're trying to look for this
select * from master..syscacheobjects
Simon
Simon Liew
Microsoft Certified Master: SQL Server 2008
September 11, 2007 at 11:00 pm
On a busy system, if it's a batch proc, wait 5 minutes after it's done, and it won't be cached any more.
On a busy system, if it's a GUI proc, wait until about 2-5 new rows are added to the table and it will have to recompile.
See Books Online for additional details...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 12, 2007 at 8:15 am
Note it may be there but may still have to recompile. To see if it is using a cached version you really have to use Profiler and look for Cache Misses to see if it has to recompile itself.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply