I am executing a sybase stored procedure from Java. I am explicitly raising an error in sybase stored proc using 'raiseerror @ERRORCODE, @ERRORMSG'. But if I execute this using callablestmt.execute() I am NOT getting any SQLException, however if I execute using callablestmt.executeUpdate() then i will get SQLException with error code and error message whatever i had given in the stored proc.
Please somebody help in undrastanding difference between these two.
Thanks and Regards, Prashant
Thanks, <br />Prashant<br />SCJP, SCBCD
I didn't like the taste of tongue and it didn't like the taste of me. I will now try this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss