Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with delete

Status
Not open for further replies.

faiyth

Programmer
Nov 22, 2002
19
US
I'll try and give as much information as I can for this.. maybe then you can help me?

Request.getParameter is a number. Even when I hard code a number in, the same error is given. This is a javaserver page. The user DOES have permission to delete. The database was connected with db.connect earlier in the program. If you need more information to help me solve this, then just state what you need and I'll try and provide it.

This is the delete statement
String query = "Delete from K9Manager where intakeno = ?";
PreparedStatement pstmt = db.createPreparedStatement(query);
pstmt.setInt( 1, Integer.parseInt(request.getParameter("ID")));
pstmt.executeUpdate();

This is the error:
Unable to query K9Manager table
java.sql.SQLException: [TDS Driver]No current row

 
You posted this five days ago, so you've probably solved it by now. If so, what was the problem?

If not, I have a question. "No current row" implies that there's a ResultSet being processed on the connection somewhere. What else is going on in that servlet?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top