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