Hi,
the code beneath is suitable; and it will not change the poistion of the cursor
if (rs != null) {
if (rs.isBeforeFirst()) {
// true if the cursor is before the first row; false if the cursor is at any other position or the result set contains no rows }
}