Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15889

does DBCC FREEPROCCACHE while force the sp to be recompiled?

$
0
0

Hi All,

Every nite we run certain import jobs on various tables, once done with imports, we run a job to update the stats we run below maintenance commands.

1.Updateusage (0)
2.sp_recompile 'objectname'
3.DBCC Freeproccache.


please let me know is it usefull to have the sp_recomiple to be run on all the objects, for couple of servers it is giving below error.

" SQL Server has encountered 1 occurrence(s) of cachestore flush for the 'Bound Trees' 
cachestore (part of plan cache) due to 'DBCC FREEPROCCACHE' or 'DBCC FREESYSTEMCACHE' 
operations."


so does running DBCC Freeproccache will force all the SP's to be Recompiled next time when they run or we need to run the Sp_recomiple system sp to recompiled the next time that they are run

Please suggest



Viewing all articles
Browse latest Browse all 15889

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>