|
Hi,
I see how processing a result set from a stored procedure works, but I'm not clear on how to retrieve output parameters.
In the JDBCR4 presentation, I see this:
"JDBC_getString(), JDBC_getInt(), JDBC_getShort(), JDBC_getBoolean()
Get the values of output parameters passed from the stored procedure"
Looking at the JDBC_get... procedures, it appears that the first parameter is the CallableStatement. The CallableStatement is the ResultSet object when processing a result set. I'm not sure what it should be when not working with a result set.
This is the stored procedure definition I'm working with:
create procedure [dbo].[spBulkInsertCdrMaster] (@fileName varchar(200), @replaceCdrMaster int, @result varchar(500) output, @message varchar(500) output)
We do have the option to change from output parms to a result set, but I figured I'd take this moment to learn how to handle the stored procedure as it is defined.
Thanks,
Kurt Anderson
Sr. Programmer/Analyst
CustomCall Data Systems, a division of Enghouse Systems Ltd.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.