On Mon, 4 Sep 2000, Eric Buschelmann wrote:
> I am attempting to use the following code.... However, I seem to always
> get to the SQL EXCEPTION (on the query)... [snip]
> ResultSet rs = st.executeQuery("insert into test values(2);");
> rs.close();
>
>
> st.close();
> con.close();
> }
>
> catch (SQLException excpt0)
> {
> textArea2.setText("SQL EXCEPTION ON QUERY!!!");
> }
The two most egregious problems are the fact that you're not letting the
exception objects tell you what they know, and the semicolon isn't part
of the SQL syntax -- lose it.
--
Bob Kline
mailto:bkline@rksystems.com
http://www.rksystems.com