I was recently asked following question about how to Check Advanced Server Configuration.
SQL SERVER – TRANSACTION, DML and Schema Locks
SQL SERVER – Stored Procedure and Transactions
SQL SERVER – Recompile Stored Procedure at Run Time
I recently received an email from reader after reading my previous article on SQL SERVER – Plan Recompilation and Reduce Recompilation – Performance Tuning regarding how to recompile any stored procedure at run time. There are multiple ways to do this. If you want your stored procedure to always recompile at run time, you can add the keyword RECOMPILE when you create the stored procedure. Additionally, if the stored procedure has to be recompiled at only one time, in that case, you can add RECOMPILE word one time only and run the SP as well. Let us go over these two options.
SQL SERVER – Plan Recompilation and Reduce Recompilation – Performance Tuning
SQL SERVER – Stored Procedure Optimization Tips – Best Practices
We will go over how to optimize Stored Procedure with making simple changes in the code. Please note there are many more other tips, which we will cover in future articles.