My qestion is - I have a Stored Procedure with variables @Week and @LWeek and they (the variables) are declared (written) in the Stored Procdure in the following order:
And the name of the Stored Procedure is usp_Sales
So when I execute this Stored Procedure and input the variables as follows:
Exec usp_Sales '15', '14' means that @Week = 15 and @LWeek = 14., Correct?
Specifically I need to confirm that the order of the variable input (when executed) is based on the order of those variables in the Stored Proc. (my thoughts are that they must be). So since @Week if first in the script of the stored procedure means that the first variable input in the exec (15) is for that variable. And similarly since @LWeek is 2nd in the script in the exec that picks up the 14 which is 2nd in the exec.