Post a reply

Write your message and submit

Options

Click in the dark area of the image to send your post.

Go back

Topic review (newest first)

thcha
2012-04-05 12:30:05

hi pedro
this is a special recursive syntax for sql query

no matter, the problem came from a comment character in the query that was not well interpreted by Talend

thanks

pedro
2012-03-29 11:13:18

Hi

Why do you put "WITH T AS" here?
I think a normal sql with multi "select" and joins won't cause any error.

Regards,
Pedro

thcha
2012-03-29 09:13:45

Hi pedro
thanks for the answer but it doesn't work better.

The sql request seams not to be propely interpreted by Talend :

Exception in thread "main" java.lang.Error: Problèmes de compilation non résolus :
    Erreur de syntaxe sur le sème "T", ; attendu
    Erreur de syntaxe sur le sème "V_CEREXTRADIMTREES", supprimez ce sème
    Erreur de syntaxe, insérez ";" pour effectuer Instruction
    Erreur de syntaxe, insérez ")" pour effectuer MethodInvocation
    Erreur de syntaxe, insérez ")" pour effectuer MethodInvocation

the query bebins as :
WITH T AS
(
    SELECT * FROM
    (
        SELECT V_CEREXTRADIMTREES.dim_id,code,dim_desc,lng
        FROM V_CEREXTRADIMTREES V_CEREXTRADIMTREES
        WHERE (V_CEREXTRADIMTREES.ows IN (0, 222071, 222081))
        AND (V_CEREXTRADIMTREES.dimension_id IN (10012))


is there a limit for the complexity of sql syntax?
What is the driver used by Talend ?

Thanks for help

regards

pedro
2012-03-28 07:37:40

Hi

If you want to execute complex sql query in TOS, you'd better use tMSSqlRow instead of tMSSqlInput.

Regards,
Pedro

thcha
2012-03-27 14:08:56

Hi

I have this error message when lauching my job :

Exception in component tMSSqlInput_1
java.sql.SQLException: Incorrect syntax near ','.
    at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:368)

The request is very long and complex but works properly in SQL Server Management Studio and retrieves the right data.
It begins as :

WITH T AS(SELECT * FROM (  SELECT V_CEREXTRADIMTREES.dim_id,code,dim_desc,lng  FROM V_CEREXTRADIMTREES V_CEREXTRADIMTREES  WHERE (V_CEREXTRADIMTREES.ows IN (0, 222071, 222081)) AND ...

an idea ?
a jdbc or driver problem?

Thanks for help

Board footer

Powered by FluxBB