The statement did not return a result set.
807589Aug 21 2008 — edited Aug 21 2008Hi,
I am using Sql Server 2005 DB and have a Insert statement to execute against this DB. I used statement
Statement st;
and connection variable. I am creating statement using this connection like
con.createStatement().
I declared a resultset variable and using this variable as
rs = st.executeQuery(queryString);
And this throwing error detailing as
com.microsoft.sqlserver.jdbc.SQLServerException: The statement did not return a result set.
at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerStatement.doExecuteStatement(Unknown Source)
Can I have a solution for this????????????????????????????