File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes JDBC - SQLSTATE : 24000 java.sql.SQLException: [Microsoft][ODBC Driver Manager] Invalid cursor state Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "JDBC - SQLSTATE : 24000 java.sql.SQLException: [Microsoft][ODBC Driver Manager] Invalid cursor state" Watch "JDBC - SQLSTATE : 24000 java.sql.SQLException: [Microsoft][ODBC Driver Manager] Invalid cursor state" New topic
Author

JDBC - SQLSTATE : 24000 java.sql.SQLException: [Microsoft][ODBC Driver Manager] Invalid cursor state

Vikramjit Saha
Greenhorn

Joined: Oct 06, 2011
Posts: 2
Hi,

I have the following method:




This method when executes the query :-




Gives the : Invalid cursor error.

Database format is : accdb (access 2007)


My getConnection method is :-





ALL other select queries are working fine and the rs!=null in the first method is okay too.

Please revert back

[moderator removed colors, and added code tags]
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2476
    
    7

Welcome to the Ranch, Vikramjit!

For readability, we have removed the colors from your post, and wrapped code tags around the code.

Good luck.


OCUP UML fundamental and ITIL foundation
youtube channel
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JDBC - SQLSTATE : 24000 java.sql.SQLException: [Microsoft][ODBC Driver Manager] Invalid cursor state
 
Similar Threads
MS Access - JDBC - ODBC - DAB's??
JDBC using ResourceBundle Class Problem
ClassNotFoundException with ResourceBundle
data mismatch error
Returning a 0 value error