A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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()
I agree. Here's the link:
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: How to catch sybase raiseerror in java ?
Difference detween execute() and executeUpdate()..?
How to handle RAISEERROR in Sybase using JDBC
Oracle stored procedures
getting ResultSet from Java Stored Procedure
Calling COBOL stored proc from Java Servlet
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013