Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

The statement did not return a result set.

807589Aug 21 2008 — edited Aug 21 2008
Hi,
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????????????????????????????
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 18 2008
Added on Aug 21 2008
3 comments
2,642 views