This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes results Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "results" Watch "results" New topic


Donald Wynn

Joined: Dec 04, 2002
Posts: 29
I'm trying to see the results of a sql query but I 'm getting this error:
java.sql.SQLException: JZ0R1: Result set is IDLE as you are not currently accessing a row.
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi Donald,
Before calling any getXXX methods on the ResultSet, you need to call the next() method and make sure it returns true (false would mean no rows).
Alexis Cifuentes

Joined: Sep 08, 2004
Posts: 1
Gracias por su ayuda.

I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: results
It's not a secret anymore!