Quote:
I dont see you using @result anywhere in the body... Thats your problem, I think or am I missing anything?!!...
|
Actually @PcILM should be @result
We solved adding a flag to the procedure to indicate whether we want the last select statement to be executed, like as follows:
CREATE PROCEDURE ANOTHER_PROC (@param char(5), @result Numeric(5,2) = 0 output, @flag char(1) = 'Y') As
Begin
Select @result = cilm.PcILM From VW cilm
if (@flag = 'Y')
Select PcILM = @PcILM
End
We didn't find a way to ignore the result of the last SELECT statement though.
Thank you