<?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] Execute SQL file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Execute-SQL-file/m-p/2373771#M136456</link>
    <description>Try to store the query from the input file in a global variable:&lt;BR /&gt;&lt;BR /&gt;tFileInputRaw --row1 (main)--&amp;gt; tConvertType --row2 (main)--&amp;gt; tFlowToIterate --iterate--&amp;gt; (your Teradata query component here)&lt;BR /&gt;&lt;BR /&gt;The tFileInputRaw component will give you one output field which will contain the whole content of the file. In the SQL statement in your Teradata component, put something like ((String)globalMap.get('row2.content')). The tConvertType component is just there to convert the data of type "Object" into a "String". I am not sure if it is really necessary.</description>
    <pubDate>Tue, 08 Nov 2016 16:45:26 GMT</pubDate>
    <dc:creator>JR1</dc:creator>
    <dc:date>2016-11-08T16:45:26Z</dc:date>
    <item>
      <title>[resolved] Execute SQL file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Execute-SQL-file/m-p/2373770#M136455</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I have a file which contains my the SQL I need to be executed. How can I execute this query from my file in my Teradata Database? I tried to use the tJava component, but with no success, maybe because I don't know Java at all.&lt;BR /&gt;&lt;BR /&gt;Can you help me with a solution?&lt;BR /&gt;&lt;BR /&gt;Thank you in advance!&lt;BR /&gt;Lucian Sabau&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 10:16:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Execute-SQL-file/m-p/2373770#M136455</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T10:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Execute SQL file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Execute-SQL-file/m-p/2373771#M136456</link>
      <description>Try to store the query from the input file in a global variable:&lt;BR /&gt;&lt;BR /&gt;tFileInputRaw --row1 (main)--&amp;gt; tConvertType --row2 (main)--&amp;gt; tFlowToIterate --iterate--&amp;gt; (your Teradata query component here)&lt;BR /&gt;&lt;BR /&gt;The tFileInputRaw component will give you one output field which will contain the whole content of the file. In the SQL statement in your Teradata component, put something like ((String)globalMap.get('row2.content')). The tConvertType component is just there to convert the data of type "Object" into a "String". I am not sure if it is really necessary.</description>
      <pubDate>Tue, 08 Nov 2016 16:45:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Execute-SQL-file/m-p/2373771#M136456</guid>
      <dc:creator>JR1</dc:creator>
      <dc:date>2016-11-08T16:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Execute SQL file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Execute-SQL-file/m-p/2373772#M136457</link>
      <description>thanks for your feedback. It's working great!&lt;BR /&gt;I used tFileInputRaw - TJavaRow (to redirect the input) - tFlowToIterate - tTeradataInput. In my last component it is enough to put&amp;nbsp; row1.qry (the input of tFlowToIterate component).&lt;BR /&gt;&lt;BR /&gt;Have a great Day!&lt;BR /&gt;Lucian</description>
      <pubDate>Wed, 09 Nov 2016 07:02:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Execute-SQL-file/m-p/2373772#M136457</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-09T07:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Execute SQL file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Execute-SQL-file/m-p/2373773#M136458</link>
      <description>Hi&amp;nbsp;&lt;FONT size="1"&gt;&lt;FONT face="Verdana," helvetica=""&gt;Lucian,&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana," helvetica=""&gt;Great your issue is fixed. Could you please mark this topic as resolved?&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana," helvetica=""&gt;Best regards&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana," helvetica=""&gt;Sabrina&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Wed, 09 Nov 2016 07:36:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Execute-SQL-file/m-p/2373773#M136458</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-09T07:36:28Z</dc:date>
    </item>
  </channel>
</rss>

