A sample JDBC application is called from the database server to return multiple result sets.
A Java Development Kit (JDK) must be installed.
For example:
CREATE PROCEDURE JDBCResults(OUT args LONG VARCHAR) DYNAMIC RESULT SETS 3 EXTERNAL NAME 'JDBCExample.Results([Ljava/sql/ResultSet;)V' LANGUAGE JAVA;
The example returns 3 result sets.
Click Tools » Options.
Click Sybase IQ.
Click the Results tab.
Set the value for Maximum Number Of Rows To Display to 5000.
Click Show All Result Sets.
Click OK.
CALL JDBCResults();
Three different result sets are returned from a server-side JDBC application.