Does updating statistics recompile stored procedures in sql server -
does updating statistics recompile stored procedures in sql server or after updating statistics( auto or manual) procedures run same execution plan first compiled with?
msdn has lengthy article on that. sum up:
therefore, plan optimality-related reasons have close association statistics.
looks depends on how statistics changed. updating statistics may lead recompile not have to. force removal of cached query plans, you can run:
dbcc freeproccache
Comments
Post a Comment