An interesting problem was posted on #SQLHelp the other day about using the QueryHint OPTION(RECOMPILE). If you are not sure about how recompile works here is a quick primer. Stored procedures can be expensive to run so SQL Server database engine takes a moment when running the procedure the first time to come up with…
RECOMPLE behavior the difference between OPTION ( RECOMPILE ) AND WITH RECOMPILE
Posted on