<?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: Dynamic compatibility of jobs with different DBMS like MsSQL , MySQL , Postgres in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-compatibility-of-jobs-with-different-DBMS-like-MsSQL/m-p/2321563#M91585</link>
    <description>&lt;P&gt;In your case, you use tLogRow to print the data to console, but you need to store the data into memory or temporary file first, and then read the data back from memory or temporary file in next subjob. tDBOutput is output component that requires an input component, the runIf is a trigger connector, it does not transfer data flow to next component, so &lt;/P&gt;&lt;P&gt;change your job to:&lt;/P&gt;&lt;P&gt;tMongoDBInput --&amp;gt; tJavaRow --&amp;gt; tMap --&amp;gt; tHashOutput&lt;/P&gt;&lt;P&gt;|&lt;/P&gt;&lt;P&gt;tJava--- (run-if sql) --&amp;gt; tDBOutput -Microsft SQL&lt;/P&gt;&lt;P&gt;****** --- (run-if mysql) --&amp;gt; tDBOutput -Mysql&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Sep 2022 10:37:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-09-07T10:37:02Z</dc:date>
    <item>
      <title>Dynamic compatibility of jobs with different DBMS like MsSQL , MySQL , Postgres</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-compatibility-of-jobs-with-different-DBMS-like-MsSQL/m-p/2321560#M91582</link>
      <description>&lt;P&gt;I have create a job in which I have used "tDBOutput - Microsoft SQL Server" to store the data into  into MS-SQL DB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have providing the connection details (ip, port, username, password, db) etc from context variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my requirement is to provide connection details from context var and the job should automatically loads the data into target DB whether it would be MSSQL, MySQL or any other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to pass the DBMS type in context variables and the job should dynamically set the target DB based on this type?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:34:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-compatibility-of-jobs-with-different-DBMS-like-MsSQL/m-p/2321560#M91582</guid>
      <dc:creator>raowaqasakram</dc:creator>
      <dc:date>2024-11-15T22:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic compatibility of jobs with different DBMS like MsSQL , MySQL , Postgres</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-compatibility-of-jobs-with-different-DBMS-like-MsSQL/m-p/2321561#M91583</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;The Database field does not support a dynamic value, you have to select the DB type at design time. A workaround is to use different tDBO​utput components for each db type and use runIf connector to fire each tDBOutput，for example:&lt;/P&gt;&lt;P&gt;....store the data to memory or temporary file--&amp;gt;tHashOutput (or tFileOutputDelimited)&lt;/P&gt;&lt;P&gt;|onsubjobok&lt;/P&gt;&lt;P&gt;tJava--runIf1---tHashInput1--main--&amp;gt;tDBOutput1&lt;/P&gt;&lt;P&gt; ******--runIf2---tHashInput2--main--&amp;gt;tDBOutput​2&lt;/P&gt;&lt;P&gt;define a context variable called db_type, the variable store the db type such as "mysql"  and it will be used in the expression of runIf connector, load the value to context variable at runtime or use the default value:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;runIf1: context.db_type.equals("mysql")&lt;/P&gt;&lt;P&gt;runIf2: context.db_type.equals("mssql")&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 09:40:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-compatibility-of-jobs-with-different-DBMS-like-MsSQL/m-p/2321561#M91583</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-07T09:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic compatibility of jobs with different DBMS like MsSQL , MySQL , Postgres</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-compatibility-of-jobs-with-different-DBMS-like-MsSQL/m-p/2321562#M91584</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got the idea. But i'm not using tHashOutput.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My flow is tMongoDBInput --&amp;gt; tJavaRow --&amp;gt; tMap --&amp;gt;  tLogRow --&amp;gt; tDBOutput&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As per your answer it should be like.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tMongoDBInput --&amp;gt; tJavaRow --&amp;gt; tMap --&amp;gt;  tLogRow (run-if sql)          --&amp;gt; tDBOutput -Microsft SQL&lt;/P&gt;&lt;P&gt;                                                                    or            (run-if mysql)     --&amp;gt; tDBOutput - MySQL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I'am unable to connect tLogRow with tDBOutput using run-if.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please comment the updated flow?&lt;/P&gt;&lt;P&gt;                &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 09:50:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-compatibility-of-jobs-with-different-DBMS-like-MsSQL/m-p/2321562#M91584</guid>
      <dc:creator>raowaqasakram</dc:creator>
      <dc:date>2022-09-07T09:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic compatibility of jobs with different DBMS like MsSQL , MySQL , Postgres</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-compatibility-of-jobs-with-different-DBMS-like-MsSQL/m-p/2321563#M91585</link>
      <description>&lt;P&gt;In your case, you use tLogRow to print the data to console, but you need to store the data into memory or temporary file first, and then read the data back from memory or temporary file in next subjob. tDBOutput is output component that requires an input component, the runIf is a trigger connector, it does not transfer data flow to next component, so &lt;/P&gt;&lt;P&gt;change your job to:&lt;/P&gt;&lt;P&gt;tMongoDBInput --&amp;gt; tJavaRow --&amp;gt; tMap --&amp;gt; tHashOutput&lt;/P&gt;&lt;P&gt;|&lt;/P&gt;&lt;P&gt;tJava--- (run-if sql) --&amp;gt; tDBOutput -Microsft SQL&lt;/P&gt;&lt;P&gt;****** --- (run-if mysql) --&amp;gt; tDBOutput -Mysql&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 10:37:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-compatibility-of-jobs-with-different-DBMS-like-MsSQL/m-p/2321563#M91585</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-07T10:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic compatibility of jobs with different DBMS like MsSQL , MySQL , Postgres</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-compatibility-of-jobs-with-different-DBMS-like-MsSQL/m-p/2321564#M91586</link>
      <description>&lt;P&gt;It's getting connected via flow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tMongoDBInput --&amp;gt; tJavaRow --&amp;gt; tMap --&amp;gt; tHashOutput --run-if--&amp;gt;tJava--&amp;gt;&amp;nbsp;tDBOutput -Microsft SQL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for this answer. Let me implement and test it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 11:03:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-compatibility-of-jobs-with-different-DBMS-like-MsSQL/m-p/2321564#M91586</guid>
      <dc:creator>raowaqasakram</dc:creator>
      <dc:date>2022-09-07T11:03:31Z</dc:date>
    </item>
  </channel>
</rss>

