I have a stored procedure like this:
Select @totalMoney*@bonusPercent/100
How i can return value from procedure and assign it to the varible?
i mean something like:
SET @myVarible = EXEC MyStoredProcedure @param1, @param1;
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.
Use an
outputvariable, return only works with integersexample
now call it like this
output
6.00000000