Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SQL Exception: Cursor state not valid

 
Dominic Steng�rd
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey fellow javacoders!

Im running JDBC on top of a DB2 database.
When I run the following code:



I get the following error when rs.beforeFirst() is executed:


Have you guys got any thoughts on why this is happening and how to solve it?
Thanks in advance!

Kind regards
[ March 08, 2008: Message edited by: Dominic Steng�rd ]
 
Herman Schelti
Ranch Hand
Posts: 387
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Dominic,



Check DB2's documentation if it supports this at all.
Lookign at your code, I think you don't need this line anyway.

Herman
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic