How can I recompile manually a stored procedure in SQL Server? Is just like a drop
and create
?
I know can do it with an option in the create statement (WITH RECOMPILE)
, and it will be recompiled every execution, and executing sp_recompile @procedureName
, which will only recompile it the next time it executes, but how can I recompile it manually without these two approaches?