Hello,
I am using the MS SQL 2000 JDBC driver from microsoft to connect to a SQL2000 DB. The connections work fine but when I try to call a stored procedure which has OUTPUT parameters I get an exception. Here is the code snippet:
CallableStatement stmt = con.prepareCall("{(call mysp(?))}"
stmt.registerOutParameter(1, java.sql.Types.INTEGER);
ResultSet rs = stmt.executeQuery();
int out = stmt.getInt(1);
Here in the last line I get an "The requested data is not available" exception.
Any suggestions ?
Thanks !
I am using the MS SQL 2000 JDBC driver from microsoft to connect to a SQL2000 DB. The connections work fine but when I try to call a stored procedure which has OUTPUT parameters I get an exception. Here is the code snippet:
CallableStatement stmt = con.prepareCall("{(call mysp(?))}"
stmt.registerOutParameter(1, java.sql.Types.INTEGER);
ResultSet rs = stmt.executeQuery();
int out = stmt.getInt(1);
Here in the last line I get an "The requested data is not available" exception.
Any suggestions ?
Thanks !