• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Vikramjit Saha
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2630
17
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch, Vikramjit!

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

Good luck.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!