Parameters and Stored Proc

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:
@Week
@LWeek

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.
SeTechAnalystAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Chris WalshSoftware DeveloperCommented:
Yes, by default the "actual" parameters you pass in should match the order as defined "formally" in your SP definition.  What version of FoxPro are you using and are you sure your are not using SQL Server?

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
SeTechAnalystAuthor Commented:
I must have hit the wrong zone cause I use SQL 2005, SQL 2008
0
pcelbaCommented:
This parameter order is valid even when calling SQL Server SP from FoxPro via sql pass-through. :-)

I would say almost every FoxPro programmer can answer questions from SQL zone but not vice versa...
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
FoxPro

From novice to tech pro — start learning today.