I want to know if a stored proc with a IF within will re-execute the execution plan or use the saved execution plan?
IF @language = 1
SELECT NAME_L1
FROM Table1
ELSE
SEECT NAME_L2
FROM Table1
Let say this stored proc is call 10 consecutive time with @language = 1 before a call is made with @language = 2
Thank you
Martin