This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JDBC and the fly likes SQL Exception: Invalid cursor state Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "SQL Exception: Invalid cursor state" Watch "SQL Exception: Invalid cursor state" New topic
Author

SQL Exception: Invalid cursor state

duplessis van aswegen
Greenhorn

Joined: Aug 01, 2011
Posts: 2
Hi guys, I'm coding a simple translation program that uses a SQL database to retrieve the words from both languages and then,
when you choose a word from the list, translate it to the corresponding word in the other language.

Here's the Error:

java.sql.SQLException: [Microsoft][ODBC Driver Manager] Invalid cursor state

And here's the code:



Any help would be appreciated.
Thanks.
duplessis van aswegen
Greenhorn

Joined: Aug 01, 2011
Posts: 2
nevermind guys I fixed it...
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30130
    
150

Welcome to CodeRanch!

I assume you fixed it by adding rs.next(). If it was something else, please share so others can learn from your experience.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SQL Exception: Invalid cursor state
 
Similar Threads
java.sql.SQLException: [Microsoft][ODBC Driver Manager] Invalid cursor state
Error in getting data from database
Error in output
How to get the value
how to access database using jsp