| Author |
error invalid cursor state
|
Ashwini Iyer
Greenhorn
Joined: Feb 24, 2003
Posts: 1
|
|
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
Joined: Dec 19, 2002
Posts: 374
|
|
|
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.
|
"Write beautiful code; then profile that beautiful code and make little bits of it uglier but faster." --The JavaPerformanceTuning.com team, Newsletter 039.
|
 |
 |
|
|
subject: error invalid cursor state
|
|
|