You are not logged in.
Announcement
Unanswered posts
|
Pages: 1

Hi all,
I want to use a tMSSqlSP with a function using 3 parameters and returning an integer.
If I use output components, I get a java Exception else it works. See the attached file for more details.
How does this components work please ?
I'm using Talend 2.2.3 with java.
Regards
Ben
Offline
Hi
You should add the 'sk' column in parameters box and its type is out/record set.
Best regards
shong
Offline

If I add sk in OUT, I obtain
Exception in component tMSSqlSP_1
java.sql.SQLException: Trop d'arguments sont spécifiés pour la procédure ou la fonction ps_giveme_SKTechLoad.
at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:365)
at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2781)
and in Record Set :
Exception in component tMSSqlSP_1
java.sql.SQLException: Output parameters have not yet been processed. Call getMoreResults().
at net.sourceforge.jtds.jdbc.ParamInfo.getOutValue(ParamInfo.java:159)
at
Regards
Offline

I'm getting the same behavior with tMSSqlSP and a procedure with output parameters:
Exception in component tMSSqlSP_1
java.sql.SQLException: Output parameters have not yet been processed. Call getMoreResults().
at net.sourceforge.jtds.jdbc.ParamInfo.getOutValue(ParamInfo.java:159)
Is this a bug???
Regards,
MC
Offline

Issue reported.
http://www.talendforge.org/bugs/view.php?id=2777
Regards
MC
Offline
Pages: 1