I have a stored procedure that basically calls 7 or 8 other stored procedures. I’d like know if recompiling the outer stored procedure will cause the 7 or 8 to also be recompiled?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No.
Optimizing SQL Server Stored Procedures to Avoid Recompiles
About the only automatic way a stored procedure will be recompiled is by adding the WITH RECOMPILE
here are other ways to recompile a stored procedure