Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • 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: 2628
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!