Hi All,
Can rs.last() work for stored procedure calls. Please find the code and
the error below.
CallableStatement cstmt = dbconnection.prepareCall("" + "{call
CallProcedureNames()}", ResultSet.TYPE_FORWARD_ONLY
,ResultSet.CONCUR_READ_ONLY);
ResultSet rs = cstmt.executeQuery();
rs.last(); //This is the place it errors out....
Error Message:
Caught exception: java.sql.SQLException: Fetch type is
TYPE_FORWARD_ONLY
Please note the above code works fine if I fire a query... but doesn't
work for a stored procedure.
I am in a great need please help me.
itsdeba - 12 Dec 2006 18:05 GMT
I forgot to mention I even tried
CallableStatement cstmt = dbconnection.prepareCall("" + "{call
CallProcedureNames()}",
ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_READ_ONLY);
itsdeba - 12 Dec 2006 18:05 GMT
I forgot to mention I even tried
CallableStatement cstmt = dbconnection.prepareCall("" + "{call
CallProcedureNames()}",
ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_READ_ONLY);