aspose file tools
The moose likes JDBC and the fly likes Difference detween execute() and executeUpdate()..? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "Difference detween execute() and executeUpdate()..?" Watch "Difference detween execute() and executeUpdate()..?" New topic
Author

Difference detween execute() and executeUpdate()..?

Prashant Neginahal
Ranch Hand

Joined: Sep 14, 2002
Posts: 77
Hi All,

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 agree. Here's the link: http://jrebel.com/download
 
subject: Difference detween execute() and executeUpdate()..?
 
Similar Threads
getting empty resultset
How to handle RAISEERROR in Sybase using JDBC
Java and Sybase nested stored procedures
with Java: how to update a row in sybase with string having a single quote
Java and Sybase nested stored procedures