title: Does assigning stored procedure input parameters to local variables help optimize the query?
body: <p>I have a stored procedure that takes 5 input parameters. The procedure is a bit complicated and takes around 2 minutes to execute. I am in process of optimizing query. </p>
  
  <p>So, my question is, does it always help to assign input parameters to local variables and then use local variables in the procedure?</p>
  
  <p>If so, how does it help?</p>