problrm in prepared statement
I am trying to updating a table using prepared statement using executeupdate(). I need to write to a reject file if my update fails , the rejected resultset. I have tried to use getresultset() on preparedstatement and it does not work. any sugessions please.fred
[283 byte] By [
fredyd] at [2007-9-26 3:47:54]

Hi,
An executeUpdate returns to you an integer and not a resultset.Hence you won't be getting any resultset.You can try checking for a nonzero number returned by executeUpdate() to signify a sucess.
Hope this will help you.
Anil.
Developer Technical Support.
Sun Microsystems,India.
http://www.sun.com/developers/support