Java exception: the statement didn't return a resultset
问题 My original environment is SQL server 2005 + WebSphere v6.0(JDBC 3.0) . When I run the program as below and it works well. ResultSet rs=stmt.executeQuery(sql); rs.next(); However, when I upgrade the environment to SQL server 2005 + WebSphere v8.5(JDBC 4.0) , I get the error message: com.microsoft.sqlserver.jdbc.SQLServerException: The statement did not return a result set. From this forum's information, it seems that I have multiple resultsets, so I try to change the program as follows and it