#1 2008-01-08 16:08:46

bedurand
Member
Registered: 2007-07-06
Posts: 126

about tMSSqlSP

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


Uploaded Images

Offline

#2 2008-01-10 03:45:56

shong
Talend team
Registered: 2007-08-29
Posts: 10290
Website

Re: about tMSSqlSP

Hi

You should add the 'sk' column in parameters box and its type is out/record set.

Best regards

         shong


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the leader of open source data management and application integration solutions!

Offline

#3 2008-01-10 10:42:21

bedurand
Member
Registered: 2007-07-06
Posts: 126

Re: about tMSSqlSP

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

#4 2008-01-11 20:47:52

rrvieira
Member
Registered: 2007-09-26
Posts: 49

Re: about tMSSqlSP

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

#5 2008-01-11 20:55:45

rrvieira
Member
Registered: 2007-09-26
Posts: 49

Re: about tMSSqlSP

Offline

Board footer

Powered by FluxBB