About 371,000 results
Open links in new tab
  1. Difference between with recompile and Option (recompile)

    Jan 4, 2023 · 0 I've read online that with recompile will recompile the whole procedure whereas Option(recompile) will only the recompile a specific statement that it is used on.

  2. When to use With Recompile - Database Administrators Stack Exchange

    5 I know what With Recompile means, and I know that it is not suggested at most of the times due to performance issues, no dmv's, etc.. Sometimes there are cases that it may help, but …

  3. How to recompile all stored procedures and table valued functions in ...

    Sep 29, 2017 · In a SQL Server database sp_recompile can be run on a stored procedure to update the execution plan. I would like to run this on all stored procedures in a database.

  4. sql server - Is there any benefit to WITH RECOMPILE or OPTION ...

    Dec 17, 2023 · Theoretically, is there any benefit to including either WITH RECOMPILE or OPTION (RECOMPILE) in such a stored procedure? If it helps, assume that I am on a 2016 version of SQL …

  5. t sql - Aside from explicitly flushing the cache or demanding ...

    Dec 27, 2023 · So, aside from explicitly flushing the cache or demanding recompiles (e.g. WITH RECOMPILE), what recompiles a full stored procedure in SQL Server 2019 rather than just …

  6. Does it make sense to use OPTION (RECOMPILE) in dynamic SQL?

    Mar 15, 2021 · 2 I would like to find out if using OPTION (RECOMPILE) is beneficial when executing dynamic sql queries? There are a few points to keep in mind: There will be hundreds (maybe even …

  7. Do temp tables cause Recompilations in SQL Server?

    Oct 16, 2024 · Explore related questions sql-server performance recompile See similar questions with these tags.

  8. What could cause a SQL Server non-cached temporary table to NOT …

    Dec 6, 2024 · Brief Summary With two concurrent executions of the same statement, one private runtime copy of the statement plan can recompile and update the shared recompilation threshold …

  9. how to add option (recompile) within this stored procedure?

    Sep 19, 2018 · 2) how could I add option(recompile) within the code? There are differences between adding option (recompile) within the code and creating a stored procedure with recompile.

  10. General Question on sp_recompile - Database Administrators Stack …

    Jan 19, 2021 · For couple of scenarios, not many a times but few we have seen doing sp_recompile on a stored proc improving the performance. Being a DBA i understand few of caveats involved when …