Recompilation

The process of creating a new query plan from the existing query tree is called recompilation. Recompilation takes place whenever one of the following events occurs:

In addition, the CREATE INDEX statement causes automatic recompilation of stored procedures the next time they are executed. (Note that the UPDATE STATISTICS statement does not cause recompilation.) Dropping an index or table referenced by a query invalidates all existing cached copies of the query plan.