posted 19 years ago
first -- thanks for all previous help here is the new problem:
my resultset has 9 items yet after moving through the first 5 items (and updating each one in turn) i get an invalid cursor state error;
here is the code which is a method which open an SQL 8.0 server (2000) DB table retieves and updatable result set, writes a flat file reocrd and updates the corresponding database record
my system.out.println displays for cursor information are
the row is: 1total rows 9
the row is: 2total rows 9
the row is: 3total rows 9
the row is: 4total rows 9
the row is: 5total rows 9
the row is: 6total rows 9
[Microsoft] [ODBC Driver Manager] Invalid cursor state
[Microsoft] [ODBC Driver Manager] Invalid cursor state
Here is the interesting part -- when looking at the actual table i get the following results
1st physical row selected for resultset processed
2nd physical row selected for resultset skipped
3rd physical row selected for resultset processed
4th physical row selected for resultset skipped
5th physical row selected for resultset processed
6th physical row selected for resultset skipped
7th physical row selected for resultset processed
8th physical row selected for resultset skippped
9th physical row selected for resultset processed
which corresponds to the 5 display that don't have curosr state problems
If ia simply do the output file processing and eliminate THE 2 UPDATE Strings the the updateRow -- all 9 items process and 9 reocrds are written to my flat file in the sequence they appear in my original table
what is the problem with my cursor?
[ July 18, 2005: Message edited by: Bob Rubin ]