<?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 Same job with multiple databases as output in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Same-job-with-multiple-databases-as-output/m-p/2211717#M9635</link>
    <description>Hi there,
&lt;BR /&gt;I couldn't find a solution for my issue anywhere.&amp;nbsp;
&lt;BR /&gt;I have a lot of jobs, some of them contain multiple mappings. The input is a SQL Server table or view every time.
&lt;BR /&gt;Initially an Oracle table was set as output. It was working fine. But now I need to get the jobs working on SQL Server too.
&lt;BR /&gt;I've created a new context variable which can determine whether MSSQL (0) or Oracle (1) is used. There are 2 filters after each mapping with this variable. This is my current solution:
&lt;BR /&gt;
&lt;BR /&gt;This job fails if I don't have any of those systems installed, because it wants to create the connection to both databases. The 2 output databases are identical, and I don't really want to create the same job again for the same database on SQL Server.
&lt;BR /&gt;Is there a possibility to enable only 1 connection at a time?
&lt;BR /&gt;If not then is there any other way to distinguish between the outputs?
&lt;BR /&gt;Thanks and regards,
&lt;BR /&gt;J</description>
    <pubDate>Tue, 25 Nov 2014 10:16:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-11-25T10:16:59Z</dc:date>
    <item>
      <title>Same job with multiple databases as output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Same-job-with-multiple-databases-as-output/m-p/2211717#M9635</link>
      <description>Hi there,
&lt;BR /&gt;I couldn't find a solution for my issue anywhere.&amp;nbsp;
&lt;BR /&gt;I have a lot of jobs, some of them contain multiple mappings. The input is a SQL Server table or view every time.
&lt;BR /&gt;Initially an Oracle table was set as output. It was working fine. But now I need to get the jobs working on SQL Server too.
&lt;BR /&gt;I've created a new context variable which can determine whether MSSQL (0) or Oracle (1) is used. There are 2 filters after each mapping with this variable. This is my current solution:
&lt;BR /&gt;
&lt;BR /&gt;This job fails if I don't have any of those systems installed, because it wants to create the connection to both databases. The 2 output databases are identical, and I don't really want to create the same job again for the same database on SQL Server.
&lt;BR /&gt;Is there a possibility to enable only 1 connection at a time?
&lt;BR /&gt;If not then is there any other way to distinguish between the outputs?
&lt;BR /&gt;Thanks and regards,
&lt;BR /&gt;J</description>
      <pubDate>Tue, 25 Nov 2014 10:16:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Same-job-with-multiple-databases-as-output/m-p/2211717#M9635</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-25T10:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Same job with multiple databases as output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Same-job-with-multiple-databases-as-output/m-p/2211718#M9636</link>
      <description>Hi, giramon.. 
&lt;BR /&gt;i cannot imagine your ETL jobs so i assume you are using the context as a filter to determine which table in which database the data should be inserted/updated.. 
&lt;BR /&gt;why don't you use the final output (the data that you want to insert/update) as an input of tMap (you need to add tMap).. 
&lt;BR /&gt;in that tMap, create 2 outputs (eg - mssql_out &amp;amp; oracle_out) and then use these outputs and point it to respective DB.. in your case, tMssqlOutput and tOracleOutput.. (it's easier if you have the DB connections (Oracle &amp;amp; MSSQL) in you metadata repository, just drag/drop and choose t&amp;lt;DBtype&amp;gt;Output then set up the table name, schema, etc..) 
&lt;BR /&gt;please refer attachment to understand what i mean.. 
&lt;BR /&gt;hope that'll helps! 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBgF.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139014i46887FA0DB00DA97/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBgF.jpg" alt="0683p000009MBgF.jpg" /&gt;&lt;/span&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBgK.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152962i5A66B779AE41BA41/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBgK.jpg" alt="0683p000009MBgK.jpg" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 25 Nov 2014 14:41:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Same-job-with-multiple-databases-as-output/m-p/2211718#M9636</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-25T14:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Same job with multiple databases as output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Same-job-with-multiple-databases-as-output/m-p/2211719#M9637</link>
      <description>&amp;nbsp;Hi&amp;nbsp;sky_angel, 
&lt;BR /&gt;I don't know why my attachment cannot be seen. 
&lt;BR /&gt;Let's hope it'll work now. 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/242007/job.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBVJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130324i6C01640B470EF5E1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBVJ.png" alt="0683p000009MBVJ.png" /&gt;&lt;/span&gt; &lt;/A&gt;&amp;nbsp; 
&lt;BR /&gt;So this was my job. As you can see it's similar to your suggestion, but in this way only 1 mapping is created. And this is how I need it. 
&lt;BR /&gt;I don't want to create more jobs or more mappings, because they are huge sometimes and maintaining them in the future would be twice as painful.</description>
      <pubDate>Tue, 25 Nov 2014 15:00:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Same-job-with-multiple-databases-as-output/m-p/2211719#M9637</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-25T15:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Same job with multiple databases as output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Same-job-with-multiple-databases-as-output/m-p/2211720#M9638</link>
      <description>hi , 
&lt;BR /&gt;if you're using a tis (entreprise ) talend version wrap it in a joblet. (modification in one place) 
&lt;BR /&gt;otherwise no real way to switch between 2 differents output within one job ... 
&lt;BR /&gt;regards 
&lt;BR /&gt;laurent</description>
      <pubDate>Tue, 25 Nov 2014 15:51:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Same-job-with-multiple-databases-as-output/m-p/2211720#M9638</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-25T15:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Same job with multiple databases as output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Same-job-with-multiple-databases-as-output/m-p/2211721#M9639</link>
      <description>Hi, giramon.. 
&lt;BR /&gt;i wonder why you have to use tReplicate + 2 tFilterRow components if you only have 0 and 1 as your variables.. 
&lt;BR /&gt;do you have variables other than 0 and 1? if no, then you just need to use 1 tFilterRow with its 2 outputs.. (Filter &amp;amp; Reject) 
&lt;BR /&gt;right click on tFilterRow &amp;gt; Row &amp;gt; Filter/Reject.. 
&lt;BR /&gt;please refer the attachment.. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBgP.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136678i4325A7B26D4AD3CD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBgP.jpg" alt="0683p000009MBgP.jpg" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 25 Nov 2014 17:24:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Same-job-with-multiple-databases-as-output/m-p/2211721#M9639</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-25T17:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Same job with multiple databases as output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Same-job-with-multiple-databases-as-output/m-p/2211722#M9640</link>
      <description>Hi sky_angel,&lt;BR /&gt;This simplifies my solution, so instead of a replicate and 2 filters I use just 1 filter, but my problem still exists.&lt;BR /&gt;Is there a possibility to disable the connection to an output without deactivating it in the job?&lt;BR /&gt;Or is it right what kzone said? Is it not possible to switch between 2 different type of databases?&lt;BR /&gt;Thanks and regards</description>
      <pubDate>Wed, 26 Nov 2014 09:19:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Same-job-with-multiple-databases-as-output/m-p/2211722#M9640</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-26T09:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Same job with multiple databases as output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Same-job-with-multiple-databases-as-output/m-p/2211723#M9641</link>
      <description>I guess that even with a JDBC component , you canot switch on different DB due to the fact that you cannot dynamically assign jar (driver).&lt;BR /&gt;regards&lt;BR /&gt;laurent&amp;nbsp;</description>
      <pubDate>Wed, 26 Nov 2014 10:27:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Same-job-with-multiple-databases-as-output/m-p/2211723#M9641</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-26T10:27:52Z</dc:date>
    </item>
  </channel>
</rss>

