<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: [resolved] MSSQL Query works in SQL Builder but not in Job in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-MSSQL-Query-works-in-SQL-Builder-but-not-in-Job/m-p/2327169#M96570</link>
    <description>Hi David 
&lt;BR /&gt;I think the problem caused by "--SOURCE_COLUMN", is it a column name or just comment? Remove it should be ok. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
    <pubDate>Wed, 15 Jun 2011 09:01:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-06-15T09:01:02Z</dc:date>
    <item>
      <title>[resolved] MSSQL Query works in SQL Builder but not in Job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-MSSQL-Query-works-in-SQL-Builder-but-not-in-Job/m-p/2327168#M96569</link>
      <description>I have a query 
  &lt;BR /&gt; 
  &lt;PRE&gt;SELECT 	JOB_ID,&lt;BR /&gt;		PHYSICAL_DATASET,&lt;BR /&gt;		LOGICAL_DATASET,&lt;BR /&gt;		FACT_BREAK,&lt;BR /&gt;		ENTERPRISE_ID,&lt;BR /&gt;		BREAK_ID,&lt;BR /&gt;		SOURCE_TIMESTAMP,&lt;BR /&gt;		DATAFEED_BREAK,&lt;BR /&gt;		ETL_TRANSACTION,&lt;BR /&gt;		TARGET_STATE,&lt;BR /&gt;		Dataset_Type,&lt;BR /&gt;		Target_Dimension,&lt;BR /&gt;		Target_Category,&lt;BR /&gt;		--Dimension_Context,&lt;BR /&gt;		Context_ID,&lt;BR /&gt;		Reference_Composite,&lt;BR /&gt;		Dimension_ID,&lt;BR /&gt;		Control_Key,&lt;BR /&gt;		Placeholder_Flag,&lt;BR /&gt;		Unknown_Flag,&lt;BR /&gt;		Orphan_Flag,&lt;BR /&gt;		--SOURCE_COLUMN,&lt;BR /&gt;		--SOURCE_VALUE,&lt;BR /&gt;		CONTEXT_KEY_01,&lt;BR /&gt;		CONTEXT_KEY_02,&lt;BR /&gt;		CONTEXT_KEY_03,&lt;BR /&gt;		CONTEXT_KEY_04,&lt;BR /&gt;		CONTEXT_KEY_05,&lt;BR /&gt;		CONTEXT_KEY_06,&lt;BR /&gt;		CONTEXT_KEY_07,&lt;BR /&gt;		CONTEXT_KEY_08,&lt;BR /&gt;		CONTEXT_KEY_09,&lt;BR /&gt;		CONTEXT_KEY_10&lt;BR /&gt;FROM ( &lt;BR /&gt;SELECT  JOB_ID,&lt;BR /&gt;		PHYSICAL_DATASET,&lt;BR /&gt;		LOGICAL_DATASET,&lt;BR /&gt;		FACT_BREAK,&lt;BR /&gt;		ENTERPRISE_ID,&lt;BR /&gt;		BREAK_ID,&lt;BR /&gt;		SOURCE_TIMESTAMP,&lt;BR /&gt;		DATAFEED_BREAK,&lt;BR /&gt;		ETL_TRANSACTION,&lt;BR /&gt;		TARGET_&lt;/PRE&gt;
 &lt;BR /&gt;&lt;BR /&gt;To see the whole post, download it &lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Mct1" target="_blank"&gt;here&lt;/A&gt;</description>
      <pubDate>Sat, 16 Nov 2024 12:51:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-MSSQL-Query-works-in-SQL-Builder-but-not-in-Job/m-p/2327168#M96569</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] MSSQL Query works in SQL Builder but not in Job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-MSSQL-Query-works-in-SQL-Builder-but-not-in-Job/m-p/2327169#M96570</link>
      <description>Hi David 
&lt;BR /&gt;I think the problem caused by "--SOURCE_COLUMN", is it a column name or just comment? Remove it should be ok. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 15 Jun 2011 09:01:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-MSSQL-Query-works-in-SQL-Builder-but-not-in-Job/m-p/2327169#M96570</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-15T09:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] MSSQL Query works in SQL Builder but not in Job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-MSSQL-Query-works-in-SQL-Builder-but-not-in-Job/m-p/2327170#M96571</link>
      <description>Hi Shong, 
  &lt;BR /&gt;--Dimension_Context, --SOURCE_COLUMN, &amp;amp; --SOURCE_VALUE, are all actual colunms i just commented out in the sql code. I have now removed the them from the sql query altogether. However I'm still getting the same error: 
  &lt;BR /&gt;Here is the error when i Execute the job: 
  &lt;BR /&gt; 
  &lt;PRE&gt;Starting job xxxxxxtest at 01:11 15/06/2011.&lt;BR /&gt;Exception in component tMSSqlInput_1&lt;BR /&gt;java.sql.SQLException: Incorrect syntax near ','.&lt;BR /&gt;	at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:368)&lt;BR /&gt;	at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2820)&lt;BR /&gt;	at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2258)&lt;BR /&gt;	at net.sourceforge.jtds.jdbc.TdsCore.getMoreResults(TdsCore.java:632)&lt;BR /&gt;	at net.sourceforge.jtds.jdbc.JtdsStatement.executeSQLQuery(JtdsStatement.java:477)&lt;BR /&gt;	at net.sourceforge.jtds.jdbc.JtdsStatement.executeQuery(JtdsStatement.java:1304)&lt;BR /&gt;	at poc_star.xxxxxxtest_0_1.xxxxxxtest.tMSSqlInput_1Process(xxxx&lt;/PRE&gt;
 &lt;BR /&gt;&lt;BR /&gt;To see the whole post, download it &lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009MdHm"&gt;here&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009MdHm"&gt;OriginalPost.pdf&lt;/A&gt;</description>
      <pubDate>Wed, 15 Jun 2011 09:17:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-MSSQL-Query-works-in-SQL-Builder-but-not-in-Job/m-p/2327170#M96571</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-15T09:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] MSSQL Query works in SQL Builder but not in Job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-MSSQL-Query-works-in-SQL-Builder-but-not-in-Job/m-p/2327171#M96572</link>
      <description>Also is there a way to see the Actual SQL Query that is being sent to the backend? I tried to use tJavaRow on the Main output but it would always fail before it even got the tJavaRow
&lt;BR /&gt;The code i used in tJavaRow
&lt;BR /&gt;
&lt;PRE&gt;System.out.println((String)globalMap.get("tMSSqlInput_1_QUERY"));&lt;/PRE&gt;
&lt;BR /&gt;-David</description>
      <pubDate>Wed, 15 Jun 2011 09:29:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-MSSQL-Query-works-in-SQL-Builder-but-not-in-Job/m-p/2327171#M96572</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-15T09:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] MSSQL Query works in SQL Builder but not in Job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-MSSQL-Query-works-in-SQL-Builder-but-not-in-Job/m-p/2327172#M96573</link>
      <description>Hi Shong, 
&lt;BR /&gt;I missed a commented out line from the SQL statement, once i removed it, it worked! Thx for the help on that. 
&lt;BR /&gt;However, can you reply to my other two questions: 
&lt;BR /&gt;1) are SQL Comments not allowed? 
&lt;BR /&gt;2) how can i view the actual SQL query that is generated by Talend. 
&lt;BR /&gt;Thx, 
&lt;BR /&gt;David</description>
      <pubDate>Wed, 15 Jun 2011 09:40:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-MSSQL-Query-works-in-SQL-Builder-but-not-in-Job/m-p/2327172#M96573</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-15T09:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] MSSQL Query works in SQL Builder but not in Job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-MSSQL-Query-works-in-SQL-Builder-but-not-in-Job/m-p/2327173#M96574</link>
      <description>David, 
&lt;BR /&gt;Comments are not allowed because of the restriction on multi-line strings in Java. If you take a look at your generated code, you will see that the query gets placed in a single line. This means the '--' will comment out everything after it, causing your syntax error. 
&lt;BR /&gt;Pulling the query from the globalMap is the correct way to see what exactly Talend will send to the DB.</description>
      <pubDate>Wed, 15 Jun 2011 15:18:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-MSSQL-Query-works-in-SQL-Builder-but-not-in-Job/m-p/2327173#M96574</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-15T15:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] MSSQL Query works in SQL Builder but not in Job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-MSSQL-Query-works-in-SQL-Builder-but-not-in-Job/m-p/2327174#M96575</link>
      <description>Thanks John! Understood. 
&lt;BR /&gt;-David</description>
      <pubDate>Fri, 17 Jun 2011 02:49:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-MSSQL-Query-works-in-SQL-Builder-but-not-in-Job/m-p/2327174#M96575</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-17T02:49:44Z</dc:date>
    </item>
  </channel>
</rss>

