<?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: MSSQL file input to tMap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/MSSQL-file-input-to-tMap/m-p/2353304#M119528</link>
    <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKpMAAW"&gt;@fdenis&lt;/A&gt;&amp;nbsp;Which tFileInput component do I use?&amp;nbsp; fFileInputRaw?&amp;nbsp; These are the choices I get&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tFileInput.png" style="width: 200px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M5ZD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142981i6E9E136A692781DE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M5ZD.png" alt="0683p000009M5ZD.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am brand new to Talend, and although your reply appears to be helpful, I'm struggling to pick and configure the components.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am using a "tFileInputRaw" component to import my .sql file&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tFileInputRaw.png" style="width: 366px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M5ZI.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/127824iD69498E53E0D8305/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M5ZI.png" alt="0683p000009M5ZI.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The context resource file is the .sql file containing the SQL statement.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I then have a "main" to a "tFlowTolerate" component.&amp;nbsp; There doesn't appear to be any configuration options for this component.&amp;nbsp; How do I configure it to do what I want?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This component is then "iterate" to a "tDBRow", but the schema produced by the input file isn't anywhere, so how do I configure it?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Is there any chance you can expand your reply to explain exactly how I should set this up?&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jun 2019 10:42:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-06-11T10:42:43Z</dc:date>
    <item>
      <title>MSSQL file input to tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/MSSQL-file-input-to-tMap/m-p/2353296#M119520</link>
      <description>&lt;P&gt;Hi everyone. I'm brand new to Talend, and am struggling to do the following.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The purpose of the job I am creating is to take data from a source MSSQL database and put the results into a different target MSSQL database.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have complex MSSQL (T-SQL) SELECT query with some complicated logic and joins.&amp;nbsp; Rather than using a whole bunch of tDBInput components and attempting to create the correct JOIN logic and transformations in a tMap, what I would like is to use a resource .sql file, execute it, and have the resulting schema available to me in a tMap, so that I can map the results to an output table in a different database.&amp;nbsp; Is this even possible?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i.e.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;resource file (SQL file) &amp;gt;&amp;gt;&amp;gt; resulting schema available as input to a tMap&amp;nbsp; &amp;gt;&amp;gt;&amp;gt; map to an output &amp;gt;&amp;gt;&amp;gt; output to target database&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have found varied threads in this community where people have asked similar questions, but none of the solutions have worked for me (some made no sense, or I didn't appear to have the option of the components mentioned).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks in advance&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 10:46:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/MSSQL-file-input-to-tMap/m-p/2353296#M119520</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-05T10:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: MSSQL file input to tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/MSSQL-file-input-to-tMap/m-p/2353297#M119521</link>
      <description>you are on the good way but each project have it's own solution.&lt;BR /&gt;just create one job who read and load data into 2 sql db.(did you have db links between dbs).&lt;BR /&gt;then use context to guive your job the sql query and the output table name.&lt;BR /&gt;then create a job who read raw data (sql query) and call previeous job……&lt;BR /&gt;good luck&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Jun 2019 10:55:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/MSSQL-file-input-to-tMap/m-p/2353297#M119521</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2019-06-05T10:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: MSSQL file input to tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/MSSQL-file-input-to-tMap/m-p/2353298#M119522</link>
      <description>&lt;P&gt;I'm not quite sure what you're suggesting there.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have have got a little further with this.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have used a tDBInput component and used my SQL query in the Query text box, and created the schema.&lt;/P&gt; 
&lt;P&gt;I have then fed this into a tMap.&amp;nbsp; Then created an output in the tMap and outputted all the fields in the input to the output as is.&lt;/P&gt; 
&lt;P&gt;Then I used a tDBOutput, connected it to my target DB, told it the table to target, synced the columns.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This is working and does achieve what I am after.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;However, the one drawback is the input SQL statement is contained within the tDBInput component, instead of in a resource file which is what I want to do as this offers me better source control of the raw SQL.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="job1.png" style="width: 560px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M5SH.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130729i8909864BCF0FD405/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M5SH.png" alt="0683p000009M5SH.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 13:15:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/MSSQL-file-input-to-tMap/m-p/2353298#M119522</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-05T13:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: MSSQL file input to tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/MSSQL-file-input-to-tMap/m-p/2353299#M119523</link>
      <description>are you on the open verssion? if yes, you did not have dynamic schema so you cannot globalise your job! so one job by table.
&lt;BR /&gt;if you have dynamic data type you can use it. so you may have one job for all data transfer.
&lt;BR /&gt;
&lt;BR /&gt;if you are on open and you want to use a configuration fie to store sql queries, your queries have to generate insert into query.
&lt;BR /&gt;then you can execut insert queries(stored as string) into destination db.
&lt;BR /&gt;
&lt;BR /&gt;are you on open studio or entreprise ?
&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Jun 2019 13:31:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/MSSQL-file-input-to-tMap/m-p/2353299#M119523</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2019-06-05T13:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: MSSQL file input to tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/MSSQL-file-input-to-tMap/m-p/2353300#M119524</link>
      <description>I am on Enterprise</description>
      <pubDate>Fri, 07 Jun 2019 15:04:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/MSSQL-file-input-to-tMap/m-p/2353300#M119524</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-07T15:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: MSSQL file input to tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/MSSQL-file-input-to-tMap/m-p/2353301#M119525</link>
      <description>so you can use dynamic schemas&lt;BR /&gt;tfileinput --&amp;gt; tflowtoiterate -iterat -&amp;gt; tDB -&amp;gt; dynamic schema -&amp;gt; tdb</description>
      <pubDate>Tue, 11 Jun 2019 08:49:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/MSSQL-file-input-to-tMap/m-p/2353301#M119525</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2019-06-11T08:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: MSSQL file input to tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/MSSQL-file-input-to-tMap/m-p/2353302#M119526</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Yes, it's possible.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;tdbpinput --&amp;gt; tmap ---&amp;gt; tdboutput&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;First, create a select query with required columns and your logic to pull the data from source. Use the select query on the query window and do the necessary mappings in tmap to get the data in output.&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M5Z3.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129542i297F4392EBBCF4A5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M5Z3.png" alt="0683p000009M5Z3.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks,&lt;/P&gt; 
&lt;P&gt;Prabuj&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;/ * Don't forget to give kudos * /&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 10:11:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/MSSQL-file-input-to-tMap/m-p/2353302#M119526</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-11T10:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: MSSQL file input to tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/MSSQL-file-input-to-tMap/m-p/2353303#M119527</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPXkAAO"&gt;@prabuj27&lt;/A&gt;&amp;nbsp; I have already done that, and got that working, as I mentioned above (see my screenshot).&amp;nbsp; This is not what my question is.&amp;nbsp; I want to be able to use a SQL file, which is in my resource file list instead of embedding the SQL statement in the tDBInput component.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 10:25:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/MSSQL-file-input-to-tMap/m-p/2353303#M119527</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-11T10:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: MSSQL file input to tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/MSSQL-file-input-to-tMap/m-p/2353304#M119528</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKpMAAW"&gt;@fdenis&lt;/A&gt;&amp;nbsp;Which tFileInput component do I use?&amp;nbsp; fFileInputRaw?&amp;nbsp; These are the choices I get&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tFileInput.png" style="width: 200px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M5ZD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142981i6E9E136A692781DE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M5ZD.png" alt="0683p000009M5ZD.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am brand new to Talend, and although your reply appears to be helpful, I'm struggling to pick and configure the components.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am using a "tFileInputRaw" component to import my .sql file&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tFileInputRaw.png" style="width: 366px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M5ZI.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/127824iD69498E53E0D8305/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M5ZI.png" alt="0683p000009M5ZI.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The context resource file is the .sql file containing the SQL statement.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I then have a "main" to a "tFlowTolerate" component.&amp;nbsp; There doesn't appear to be any configuration options for this component.&amp;nbsp; How do I configure it to do what I want?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This component is then "iterate" to a "tDBRow", but the schema produced by the input file isn't anywhere, so how do I configure it?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Is there any chance you can expand your reply to explain exactly how I should set this up?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 10:42:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/MSSQL-file-input-to-tMap/m-p/2353304#M119528</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-11T10:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: MSSQL file input to tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/MSSQL-file-input-to-tMap/m-p/2353305#M119529</link>
      <description>delimited and change the end line \n by ;&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Jun 2019 10:57:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/MSSQL-file-input-to-tMap/m-p/2353305#M119529</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2019-06-11T10:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: MSSQL file input to tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/MSSQL-file-input-to-tMap/m-p/2353306#M119530</link>
      <description>but the best way is to use one query by file all file in a folder and add number in name to order them. destination file must be file name
&lt;BR /&gt;the use tfileListe
&lt;BR /&gt;
&lt;BR /&gt;or
&lt;BR /&gt;
&lt;BR /&gt;one file with the list of sql file to run and the name of destination table</description>
      <pubDate>Tue, 11 Jun 2019 11:00:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/MSSQL-file-input-to-tMap/m-p/2353306#M119530</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2019-06-11T11:00:31Z</dc:date>
    </item>
  </channel>
</rss>

