A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
JDBC and Relational Databases
How to catch sybase raiseerror in java ?
Joined: Feb 14, 2005
Jan 22, 2007 14:44:00
assume i am doing this
query= "exec <stored proc name>"
now, this is a single line stored proc.
how do i catch this raiseerror thing back in
i tried catching
raiseerror is not wrapped into
can someone help me with this ?
Joined: Apr 26, 2004
Jan 24, 2007 00:27:00
set nocount on in the sp.
The error code should now be in the resultset on the statement.
perform a ResultSet.next() and getInt()
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: How to catch sybase raiseerror in java ?
Calling COBOL stored proc from Java Servlet
getting ResultSet from Java Stored Procedure
Oracle stored procedures
How to handle RAISEERROR in Sybase using JDBC
Difference detween execute() and executeUpdate()..?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015