Kal
09-28-2011, 10:00 AM
Hi,
I am currently working on writing a Stored Procedure that is all working fine. however I would like to add a bit of validation within it.
I am using cursors, loops and doing calculations.
What I want to do is return a statuscode value of '1' which I have declared if calculation1 is a negative number or less than zero.
Can anyone please help me on how I go about returning this value?
Thanks
I am currently working on writing a Stored Procedure that is all working fine. however I would like to add a bit of validation within it.
I am using cursors, loops and doing calculations.
What I want to do is return a statuscode value of '1' which I have declared if calculation1 is a negative number or less than zero.
Can anyone please help me on how I go about returning this value?
Thanks