Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

error invalid cursor state  RSS feed

 
Ashwini Iyer
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting this error in servlets i have to extract just one field tha's all rs.getString("name") also i have closed all result set and statements what problem is it i am connecting to mssql.
reply to ashs_a@indiatimes.com
Please reply soon thanks in advance
 
David Hibbs
Ranch Hand
Posts: 374
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This probably belongs in the JDBC forum, but I'll answer quick anyway. Before calling rs.getString(), make sure you do an rs.next() to advance to the first row of data.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!