DEVFYI - Developer Resource - FYI

Can you scroll a result set returned from a stored procedure?...

JDBC Interview Questions and Answers


(Continued from previous question...)

Can you scroll a result set returned from a stored procedure?...

Can you scroll a result set returned from a stored procedure? I am returning a result set from a stored procedure with type SQLRPGLE but once I reach the end of the result set it does not allow repositioning. Is it possible to scroll this result set?

A CallableStatement is no different than other Statements in regard to whether related ResultSets are scrollable. You should create the CallableStatement using Connection.prepareCall(String sql, int resultSetType, int resultSetConcurrency).

(Continued on next question...)

Other Interview Questions