llError=.f. SQLEXEC(oConn.nConnHandle,"{CALL proc1(?@llError)}") *** if error occured the llError is still .f.
create procedure sp_proc1 @HasError bit out as begin trans -- Where ERROR1 is an int -- I call another procedure which in this case generate an error exec proc1 -- Then i Store error on Error1 .... ..... if @ERROR1<>0 begin set HasError =1 ROLLBACK TRANSACTION end else begin set HasError =2 COMMIT TRANSACITON end