<?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: Whole Database Migration (MSSQL-&amp;gt;MySQL) using Dynamic Schema in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Whole-Database-Migration-MSSQL-gt-MySQL-using-Dynamic-Schema/m-p/2223471#M16589</link>
    <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPbYAAW"&gt;@JohnRMK&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I just realized the problem was because of TableList component I used,&lt;/P&gt; 
&lt;P&gt;I thought it was necessary to iterate through list of table .....&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;There's another error related to DBRow.&lt;/P&gt; 
&lt;P&gt;It will summed up the points in the next post.&lt;/P&gt; 
&lt;P&gt; 
 &lt;STRIKE&gt;
   I went back to check my code, but I didn't change anything from what you gave me. 
 &lt;/STRIKE&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt; 
 &lt;STRIKE&gt;
   Below here, I tried using the job(project file) you sent over, but it didn't work either. 
 &lt;/STRIKE&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt; 
 &lt;STRIKE&gt;
   The only minor changes I made here is that I 
  &lt;STRONG&gt; added a TableList component and connect to DBConnection and HashInput with OnSubJobOk, instead of DBInput&lt;/STRONG&gt;, as I will need to iterate over list of tables. 
 &lt;/STRIKE&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="job_pk-test.png" style="width: 699px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA4K.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158069i253013CE1C44141B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA4K.png" alt="0683p000009MA4K.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt; 
 &lt;STRIKE&gt;
   Does this have anything to do with the changes in constraint name? 
 &lt;/STRIKE&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt; 
 &lt;STRIKE&gt;
   From tracing, it seems like constraint_name got repeated twice from 
  &lt;STRONG&gt; tAggregateRow (row5)&lt;/STRONG&gt; but I'm didn't make any changes there.&amp;nbsp; 
 &lt;/STRIKE&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt; 
 &lt;STRIKE&gt;
   my aggregaterow&amp;nbsp; component(no change from your code) 
 &lt;/STRIKE&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aggregaterow-component" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA4P.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129144i20046C7F738430FD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA4P.png" alt="0683p000009MA4P.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;aggregaterow-component&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Ly30"&gt;Job_tbl_mem.zip&lt;/A&gt;</description>
    <pubDate>Wed, 11 Mar 2020 04:20:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-03-11T04:20:51Z</dc:date>
    <item>
      <title>Whole Database Migration (MSSQL-&gt;MySQL) using Dynamic Schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Whole-Database-Migration-MSSQL-gt-MySQL-using-Dynamic-Schema/m-p/2223447#M16565</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;I just recently tried using Talend Cloud Data Integration (Talend Studio 7.2)&lt;/P&gt; 
&lt;P&gt;and I'm figuring how to dynamically migrate a whole MSSQL server database to MySQL(blank DB).&amp;nbsp;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;So far, I heard that it's possible to do that with Dynamic Schema.&lt;/P&gt; 
&lt;P&gt;However, I only found a &lt;A href="https://www.talend.com/blog/2019/11/11/migrate-data-between-databases-one-job-using-dynamic-schema/" target="_self" rel="nofollow noopener noreferrer"&gt;tutorial for a table (data) migration&lt;/A&gt;, or some post that didn't specifically explained much about settings and components to use.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here's my job design (UPDATED!!!)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm using global variable to dynamically define the table, however, I'm not sure how i can define the schema dynamically.&lt;/P&gt; 
&lt;P&gt;**I supposed my query is right.&lt;/P&gt; 
&lt;P&gt;Can you let me know how I can define the schema dynamically here?&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="dbinput.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8ut.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150232i6F54C9D8021E6161/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8ut.png" alt="0683p000009M8ut.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Output Component&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="output.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8yi.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128628i9768CA7E30624D64/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8yi.png" alt="0683p000009M8yi.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; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;DIV class="lia-spoiler-container"&gt; 
 &lt;A class="lia-spoiler-link" href="#" rel="nofollow noopener noreferrer" target="_blank"&gt;Spoiler&lt;/A&gt; 
 &lt;NOSCRIPT&gt;
   (Highlight to read) 
 &lt;/NOSCRIPT&gt; 
 &lt;DIV class="lia-spoiler-border"&gt; 
  &lt;DIV class="lia-spoiler-content"&gt; 
   &lt;P&gt;The other option I found was to use job template, however, it doesn't help deal with syntax error that occurred during migration like the following.&lt;/P&gt; 
   &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
   &lt;P&gt;sample1)&lt;/P&gt; 
   &lt;PRE&gt;Exception in component tDBOutput_1 (Job_tbl_mem)
java.sql.SQLSyntaxErrorException: BLOB, TEXT, GEOMETRY or JSON column 'msrepl_tran_version' can't have a default value
	at com.mysql.cj.jd&lt;/PRE&gt; 
   &lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="msrepl.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M96k.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128097i065BBE3BCF2F1F3C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M96k.png" alt="0683p000009M96k.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
   &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
   &lt;P&gt;sample2)&lt;/P&gt; 
   &lt;PRE&gt;[FATAL]: local_test.job1_tbl_mem_0_1.Job1_tbl_mem - tDBOutput_4 Invalid default value for 'mobile_inq'
java.sql.SQLSyntaxErrorException: Invalid default value for 'mobile_inq'
	at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:120)
	at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97)
	at &lt;/PRE&gt; 
   &lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mobile_inq.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9Dk.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151022iBB4ADCC407FC2C90/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9Dk.png" alt="0683p000009M9Dk.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
   &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
  &lt;/DIV&gt; 
  &lt;NOSCRIPT&gt; 
   &lt;DIV class="lia-spoiler-noscript-container"&gt; 
    &lt;DIV class="lia-spoiler-noscript-content"&gt;
      The other option I found was to use job template, however, it doesn't help deal with syntax error that occurred during migration like the following.&amp;nbsp;sample1)Exception in component tDBOutput_1 (Job_tbl_mem) java.sql.SQLSyntaxErrorException: BLOB, TEXT, GEOMETRY or JSON column 'msrepl_tran_version' can't have a default value at com.mysql.cj.jd&amp;nbsp;sample2)[FATAL]: local_test.job1_tbl_mem_0_1.Job1_tbl_mem - tDBOutput_4 Invalid default value for 'mobile_inq' java.sql.SQLSyntaxErrorException: Invalid default value for 'mobile_inq' at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:120) at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97) at &amp;nbsp; 
    &lt;/DIV&gt; 
   &lt;/DIV&gt; 
  &lt;/NOSCRIPT&gt; 
 &lt;/DIV&gt; 
&lt;/DIV&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In addition, I was hoping to find a solution where one job could perform a whole database migration. Eg) Iterating tables in a source DB then generate an output a destination DB.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please let me know either if I should proceed with Dynamic Schema or Job Template + job design/components/setting needed.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:07:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Whole-Database-Migration-MSSQL-gt-MySQL-using-Dynamic-Schema/m-p/2223447#M16565</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T03:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Whole Database Migration (MSSQL-&gt;MySQL) using Dynamic Schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Whole-Database-Migration-MSSQL-gt-MySQL-using-Dynamic-Schema/m-p/2223448#M16566</link>
      <description>&lt;P&gt;To use the Dynamic Schema you need to have a paid for version of Talend. It is only available there. If you are using such a version, maybe this blog post will help you....&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.talend.com/blog/2019/11/11/migrate-data-between-databases-one-job-using-dynamic-schema/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.talend.com/blog/2019/11/11/migrate-data-between-databases-one-job-using-dynamic-schema/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 11:00:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Whole-Database-Migration-MSSQL-gt-MySQL-using-Dynamic-Schema/m-p/2223448#M16566</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-02T11:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: Whole Database Migration (MSSQL-&gt;MySQL) using Dynamic Schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Whole-Database-Migration-MSSQL-gt-MySQL-using-Dynamic-Schema/m-p/2223449#M16567</link>
      <description>Thanks alot!!&lt;BR /&gt;&lt;BR /&gt;I am on 14 days free trial for Cloud Version.&lt;BR /&gt;I have read that blog a couple of times, but what I wanted to do here is a bit different ....&lt;BR /&gt;I wanted to have a whole database migrated (if possible with simple job design).&lt;BR /&gt;So if possible, I was hoping someone could help point on how I can make if work by improving my current job design.</description>
      <pubDate>Mon, 02 Mar 2020 11:31:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Whole-Database-Migration-MSSQL-gt-MySQL-using-Dynamic-Schema/m-p/2223449#M16567</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-02T11:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Whole Database Migration (MSSQL-&gt;MySQL) using Dynamic Schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Whole-Database-Migration-MSSQL-gt-MySQL-using-Dynamic-Schema/m-p/2223450#M16568</link>
      <description>&lt;P&gt;The only difference between what this blog shows and your requirement is a section to iterate over the different tables in your DB. You would pass the table name into this job and call it from a parent job. I believe I explain the process towards the end of blog&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 14:01:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Whole-Database-Migration-MSSQL-gt-MySQL-using-Dynamic-Schema/m-p/2223450#M16568</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-02T14:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Whole Database Migration (MSSQL-&gt;MySQL) using Dynamic Schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Whole-Database-Migration-MSSQL-gt-MySQL-using-Dynamic-Schema/m-p/2223451#M16569</link>
      <description>&lt;P&gt;I see,&lt;BR /&gt;so in this case I have a job to iterate over the tables already. So I could connect it to 2. "Identify column names" (tJavaFlex) as in the blog?&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="jobdesign.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8uF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157574iD26A9F3EB5E63E90/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8uF.png" alt="0683p000009M8uF.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I can kinda relate it to my case here.&lt;BR /&gt;However, number of columns and data types in each table differs, so I was wondering if it will still work the same?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;I've used a single database, but in reality you will likely be using different databases. It doesn't make much &lt;BR /&gt;difference, but you will&lt;STRONG&gt; need to make sure that the database column types are the same&lt;/STRONG&gt; if you are following this. &lt;BR /&gt;It would be &lt;FONT color="#993300"&gt;&lt;U&gt;possible to add some code to dynamically change the column types, but this would require extra data in &lt;/U&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#993300"&gt;&lt;U&gt;the column mapping table and some extra Java code&lt;/U&gt;.&lt;/FONT&gt; This is not covered here.&lt;/PRE&gt; 
&lt;P&gt;Is what I'm trying to do here, the case you mention here(two different databases)? (the need to add extra data and Java Code)&lt;/P&gt; 
&lt;P&gt;If yes, would you mind to help walk out the procedure to&amp;nbsp;add extra data and Java Code?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks a lot&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 00:34:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Whole-Database-Migration-MSSQL-gt-MySQL-using-Dynamic-Schema/m-p/2223451#M16569</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-03T00:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Whole Database Migration (MSSQL-&gt;MySQL) using Dynamic Schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Whole-Database-Migration-MSSQL-gt-MySQL-using-Dynamic-Schema/m-p/2223452#M16570</link>
      <description>&lt;P&gt;I tried to build up job design according to the blog, but here I encountered an error.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;"the&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;component&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;is&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;not a sub process start&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;can&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;not&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;have any link on&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;component&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;ok/ error in input"&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;for DBInput1 when I tried to trigger it with OnSubjobOk.&lt;/SPAN&gt;&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="subjob.png" style="width: 664px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9sJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154408i4C218A8BC4EAA8A5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9sJ.png" alt="0683p000009M9sJ.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 07:40:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Whole-Database-Migration-MSSQL-gt-MySQL-using-Dynamic-Schema/m-p/2223452#M16570</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-03T07:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Whole Database Migration (MSSQL-&gt;MySQL) using Dynamic Schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Whole-Database-Migration-MSSQL-gt-MySQL-using-Dynamic-Schema/m-p/2223453#M16571</link>
      <description>&lt;P&gt;The job described in the blog needs to be left alone. You would create a parent job and place that job inside it (using a tRunJob component). That would be linked to your table list component via an iterate link. You would create a context variable to hold the table name and pass the value from the table list to context variable in the tRunJob. You are essentially repetitively calling the job in the example but supplying the table name and a query.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Investigate the tRunJob component in the documentation. Also look at how you can build a select statement dynamically for each table using your database. You will need this before you can do this. Building a select statement dynamically will be described on sites for the database you are using.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 10:08:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Whole-Database-Migration-MSSQL-gt-MySQL-using-Dynamic-Schema/m-p/2223453#M16571</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-03T10:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Whole Database Migration (MSSQL-&gt;MySQL) using Dynamic Schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Whole-Database-Migration-MSSQL-gt-MySQL-using-Dynamic-Schema/m-p/2223454#M16572</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;You will find below a job allowing to migrate data from one database to another.&lt;BR /&gt;I do it from SQL server to SQL Server but you can migrate it wherever you want.&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="2020-03-03_13h51_16.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9tW.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152113i73FCCB0E13963C10/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9tW.png" alt="0683p000009M9tW.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; 
&lt;P&gt;The first step is to open the connections to the two databases.&lt;BR /&gt;Then, you list the name of the current tables in the source.&lt;BR /&gt;You iterate and make a "select * from [global_variable]" with the dynamic schema.&lt;/P&gt; 
&lt;P&gt;I advise you to add the '[]' if you have tables with keywords like 'user' or 'group'.&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="2020-03-03_14h00_47.png" style="width: 597px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9tb.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152460i1542DE369883311A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9tb.png" alt="0683p000009M9tb.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Finally, for the target, you choose Create table if note exists or drop and create, it's up to you.&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="2020-03-03_14h01_48.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9tg.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137754iD04846B8AF143134/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9tg.png" alt="0683p000009M9tg.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;The best practices is to recover the entire table structure with "tColumnList" and do a mapping on a case by case basis (look at the example of Talend cloud of MySql migration from AWS to Snowflake, you can download the job if you still have the trial version)&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;Do not hesitate if you have questions.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 13:02:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Whole-Database-Migration-MSSQL-gt-MySQL-using-Dynamic-Schema/m-p/2223454#M16572</guid>
      <dc:creator>JohnRMK</dc:creator>
      <dc:date>2020-03-03T13:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Whole Database Migration (MSSQL-&gt;MySQL) using Dynamic Schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Whole-Database-Migration-MSSQL-gt-MySQL-using-Dynamic-Schema/m-p/2223455#M16573</link>
      <description>&lt;P&gt;Nice solution&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPbYAAW"&gt;@JohnRMK&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 15:35:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Whole-Database-Migration-MSSQL-gt-MySQL-using-Dynamic-Schema/m-p/2223455#M16573</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-03T15:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Whole Database Migration (MSSQL-&gt;MySQL) using Dynamic Schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Whole-Database-Migration-MSSQL-gt-MySQL-using-Dynamic-Schema/m-p/2223456#M16574</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPbYAAW" target="_blank" rel="noopener"&gt;@cbma_1994&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;Updated!!&lt;BR /&gt;I have tried what you showed me here and I wanted to ask a few things.&lt;BR /&gt;1) Is 'DROP' a DBRow component? If yes, how do you set it up? use output Db connection?&lt;/P&gt; 
&lt;P&gt;What about table name, schema, query? All&amp;nbsp;((String)globalMap.get("tDBTableList_1_CURRENT_TABLE")??&lt;/P&gt; 
&lt;P&gt;2) Would you mind showing me how you send up the JavaFlex?&lt;/P&gt; 
&lt;P&gt;3) For DbInput,&amp;nbsp; how you define schema for Input? I tried adding a dynamic column.... but not sure if it's right.&lt;/P&gt; 
&lt;P&gt;And table name should be left blank?&lt;/P&gt; 
&lt;P&gt;4) I tried execute the job but there's an error.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Seems like the cause was the mismatch of columns between input and output table.&lt;/P&gt; 
&lt;P&gt;Is there a way to make it when columns (both number and types) don't match?&lt;/P&gt; 
&lt;P&gt;Ideally, the output DB might have only 1 or no table at all when I will use it for actual work.&lt;/P&gt; 
&lt;P&gt;(Source -&amp;gt; Blank Output DB)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please let me know if anything is unclear to you.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks alot!!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 08:11:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Whole-Database-Migration-MSSQL-gt-MySQL-using-Dynamic-Schema/m-p/2223456#M16574</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-04T08:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Whole Database Migration (MSSQL-&gt;MySQL) using Dynamic Schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Whole-Database-Migration-MSSQL-gt-MySQL-using-Dynamic-Schema/m-p/2223457#M16575</link>
      <description>&lt;P&gt;Thank you for your advice.&lt;/P&gt; 
&lt;P&gt;I have created a parent job as you mentioned and connected it to the child job(from the blog).&lt;/P&gt; 
&lt;P&gt;However, there are few things I'm not sure about.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1) How should I set schema for tRunJob component? Is it a dynamic column like the source?&lt;/P&gt; 
&lt;P&gt;Do I need to set dynamic job or context parameter?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;2) How should I create and set context variable? Is it something like the second screenshot?&lt;/P&gt; 
&lt;P&gt;Can you show me example?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;3)&amp;nbsp; The&amp;nbsp;number of columns and data types in each table differs, so&amp;nbsp; I was wondering how and what kind of data/code I need to add? As my database contains about a hundred tables and each of them have different number of column and data types.&amp;nbsp;Would you mind to help walk me through the procedure to&amp;nbsp;add extra data and Java Code?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;I've used a single database, but in reality you will likely be using different databases. It doesn't make much &lt;BR /&gt;difference, but you will&lt;STRONG&gt; need to make sure that the database column types are the same&lt;/STRONG&gt; if you are following this. &lt;BR /&gt;It would be &lt;FONT color="#993300"&gt;&lt;U&gt;possible to add some code to dynamically change the column types, but this would require extra data in &lt;/U&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#993300"&gt;&lt;U&gt;the column mapping table and some extra Java code&lt;/U&gt;.&lt;/FONT&gt; This is not covered here.&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&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="Parent Job" style="width: 490px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9nG.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137733i17E3DB63BF267CF5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9nG.png" alt="0683p000009M9nG.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Parent Job&lt;/SPAN&gt;&lt;/SPAN&gt;&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="context variable" style="width: 635px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9uo.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150851iEC7D94C54EA64899/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9uo.png" alt="0683p000009M9uo.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;context variable&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I use a global variable&amp;nbsp;((String)globalMap.get("tDBTableList_1_CURRENT_TABLE")), to define table name in the child job(blog), so I thought about defining it in a similar way here, but I'm don't know how.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Child Job (from the blog)" style="width: 643px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9uy.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153426iE482E75C263E0DBE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9uy.png" alt="0683p000009M9uy.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Child Job (from the blog)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In addition, you mentioned in the blog about multiple tables that there are 3 additional touch-up needed.&lt;/P&gt; 
&lt;P&gt;I think number 1 is what you mentioned earlier,&lt;/P&gt; 
&lt;P&gt;but I'm hoping if you can elaborate more and show examples for number 2 and 3?&lt;/P&gt; 
&lt;P&gt;If it's needed in my case, please let me know.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;1. Use Context Variables in your DB components
2. Add columns to your Column_Mapping table to hold the Table Name
You will need to add a bit more supporting data to your Column_Mapping table. If you add an "Old_Table_Name" column &lt;BR /&gt;and a "New_Table_Name" column, you can query the Column_Mapping table using the "Old_Table_Name" field and the &lt;BR /&gt;context.source Context variable. That will return the mapping configurations for your source table and return the &lt;BR /&gt;new table name. This will need to be set as your context.target Context variable value.

3. Create a wrapper Job to call this Job and supply the Table data as Context Variables
The final step for this will be to create a wrapper Job. This is a Job that will query a data set (maybe your &lt;BR /&gt;Column_Mapping) table to return a list of source tables to be migrated. This data will then be sent to this Job, &lt;BR /&gt;run using a tRunJob. For every source table identified in the wrapper Job, this Job will be run. Therefore you can &lt;BR /&gt;start the wrapper Job, it will return each of the source tables and this Job will dynamically run for each of them.&lt;/PRE&gt; 
&lt;P&gt;for you reference, this is the mapping_column input&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="column_mapping" style="width: 582px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9v8.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156980i43E552A2FBE53DE1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9v8.png" alt="0683p000009M9v8.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;column_mapping&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please let me know if you need any clarification.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks a lot&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 08:12:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Whole-Database-Migration-MSSQL-gt-MySQL-using-Dynamic-Schema/m-p/2223457#M16575</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-04T08:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Whole Database Migration (MSSQL-&gt;MySQL) using Dynamic Schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Whole-Database-Migration-MSSQL-gt-MySQL-using-Dynamic-Schema/m-p/2223458#M16576</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;"Drop" is the name I gave to a tDBRow component where I execute a query to delete all the tables (&amp;lt;&amp;lt; "EXEC sp_MSforeachtable 'DROP TABLE ?'" &amp;gt;&amp;gt;&lt;/P&gt; 
&lt;P&gt;it's not necessary and you can remove it because you delete the table in the action on the table in tDBOuput)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If you have a mapping error, it means that you do not delete the table before the extraction.&lt;BR /&gt;Use "delete table if it exists"&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;For the tJava component, it is empty. It is there because tDBInput is a stream input component and does not allow a main link before it.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;For the schema, there is only one column (name=data =&amp;gt; type=dynamic) and you map all the possible tables. I used it on projects with tables of 800 columns and 3 columns without worries.&lt;/P&gt; 
&lt;P&gt;The only possible errors are due to the config of the database (see the parameters for rounding or truncation of char)&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;The job I sent you is working properly and I am using it to clone a db.&lt;BR /&gt;You have to add controls for example you test if there is a record in the source table and with an IF trigger, you execute the data extraction.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 10:11:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Whole-Database-Migration-MSSQL-gt-MySQL-using-Dynamic-Schema/m-p/2223458#M16576</guid>
      <dc:creator>JohnRMK</dc:creator>
      <dc:date>2020-03-04T10:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Whole Database Migration (MSSQL-&gt;MySQL) using Dynamic Schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Whole-Database-Migration-MSSQL-gt-MySQL-using-Dynamic-Schema/m-p/2223459#M16577</link>
      <description>&lt;P&gt;Thanks for getting back to me.&lt;/P&gt; 
&lt;P&gt;I made changes as you mentioned, however another error comes up again.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;It said SQLServerException:&amp;nbsp; 'connection is close'&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sql_connection error" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9vN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156533i649D1C53A9CAFC99/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9vN.png" alt="0683p000009M9vN.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;sql_connection error&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Full Error Message&lt;/P&gt; 
&lt;DIV class="lia-spoiler-container"&gt; 
 &lt;A class="lia-spoiler-link" href="#" rel="nofollow noopener noreferrer"&gt;Spoiler&lt;/A&gt; 
 &lt;NOSCRIPT&gt;
   (Highlight to read) 
 &lt;/NOSCRIPT&gt; 
 &lt;DIV class="lia-spoiler-border"&gt; 
  &lt;DIV class="lia-spoiler-content"&gt; 
   &lt;P&gt;Starting job test04 at 19:44 04/03/2020.&lt;/P&gt; 
   &lt;P&gt;[statistics] connecting to socket on port 3944&lt;BR /&gt;[statistics] connected&lt;BR /&gt;Exception in component tDBTableList_1 (test04)&lt;BR /&gt;com.microsoft.sqlserver.jdbc.SQLServerException: 接続は閉じられています。&lt;BR /&gt;at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(SQLServerException.java:191)&lt;BR /&gt;at com.microsoft.sqlserver.jdbc.SQLServerConnection.checkClosed(SQLServerConnection.java:710)&lt;BR /&gt;at com.microsoft.sqlserver.jdbc.SQLServerStatement.checkClosed(SQLServerStatement.java:1071)&lt;BR /&gt;at com.microsoft.sqlserver.jdbc.SQLServerResultSet.checkClosed(SQLServerResultSet.java:387)&lt;BR /&gt;at com.microsoft.sqlserver.jdbc.SQLServerResultSet.next(SQLServerResultSet.java:1009)&lt;BR /&gt;at local_test.test04_0_1.test04.tDBTableList_1Process(test04.java:545)&lt;BR /&gt;at local_test.test04_0_1.test04.runJobInTOS(test04.java:3244)&lt;BR /&gt;at local_test.test04_0_1.test04.main(test04.java:3031)&lt;BR /&gt;[FATAL]: local_test.test04_0_1.test04 - tDBTableList_1 接続は閉じられています。&lt;BR /&gt;com.microsoft.sqlserver.jdbc.SQLServerException: 接続は閉じられています。&lt;BR /&gt;at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(SQLServerException.java:191)&lt;BR /&gt;at com.microsoft.sqlserver.jdbc.SQLServerConnection.checkClosed(SQLServerConnection.java:710)&lt;BR /&gt;at com.microsoft.sqlserver.jdbc.SQLServerStatement.checkClosed(SQLServerStatement.java:1071)&lt;BR /&gt;at com.microsoft.sqlserver.jdbc.SQLServerResultSet.checkClosed(SQLServerResultSet.java:387)&lt;BR /&gt;at com.microsoft.sqlserver.jdbc.SQLServerResultSet.next(SQLServerResultSet.java:1009)&lt;BR /&gt;at local_test.test04_0_1.test04.tDBTableList_1Process(test04.java:545)&lt;BR /&gt;at local_test.test04_0_1.test04.runJobInTOS(test04.java:3244)&lt;BR /&gt;at local_test.test04_0_1.test04.main(test04.java:3031)&lt;BR /&gt;[statistics] disconnected&lt;/P&gt; 
   &lt;P&gt;Job test04 ended at 19:44 04/03/2020. [exit code=1]&lt;/P&gt; 
  &lt;/DIV&gt; 
  &lt;NOSCRIPT&gt; 
   &lt;DIV class="lia-spoiler-noscript-container"&gt; 
    &lt;DIV class="lia-spoiler-noscript-content"&gt;
      Starting job test04 at 19:44 04/03/2020.[statistics] connecting to socket on port 3944[statistics] connectedException in component tDBTableList_1 (test04)com.microsoft.sqlserver.jdbc.SQLServerException: 接続は閉じられています。at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(SQLServerException.java:191)at com.microsoft.sqlserver.jdbc.SQLServerConnection.checkClosed(SQLServerConnection.java:710)at com.microsoft.sqlserver.jdbc.SQLServerStatement.checkClosed(SQLServerStatement.java:1071)at com.microsoft.sqlserver.jdbc.SQLServerResultSet.checkClosed(SQLServerResultSet.java:387)at com.microsoft.sqlserver.jdbc.SQLServerResultSet.next(SQLServerResultSet.java:1009)at local_test.test04_0_1.test04.tDBTableList_1Process(test04.java:545)at local_test.test04_0_1.test04.runJobInTOS(test04.java:3244)at local_test.test04_0_1.test04.main(test04.java:3031)[FATAL]: local_test.test04_0_1.test04 - tDBTableList_1 接続は閉じられています。com.microsoft.sqlserver.jdbc.SQLServerException: 接続は閉じられています。at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(SQLServerException.java:191)at com.microsoft.sqlserver.jdbc.SQLServerConnection.checkClosed(SQLServerConnection.java:710)at com.microsoft.sqlserver.jdbc.SQLServerStatement.checkClosed(SQLServerStatement.java:1071)at com.microsoft.sqlserver.jdbc.SQLServerResultSet.checkClosed(SQLServerResultSet.java:387)at com.microsoft.sqlserver.jdbc.SQLServerResultSet.next(SQLServerResultSet.java:1009)at local_test.test04_0_1.test04.tDBTableList_1Process(test04.java:545)at local_test.test04_0_1.test04.runJobInTOS(test04.java:3244)at local_test.test04_0_1.test04.main(test04.java:3031)[statistics] disconnectedJob test04 ended at 19:44 04/03/2020. [exit code=1] 
    &lt;/DIV&gt; 
   &lt;/DIV&gt; 
  &lt;/NOSCRIPT&gt; 
 &lt;/DIV&gt; 
&lt;/DIV&gt; 
&lt;P&gt;I have check my SQLServer as well as tried using it on other job, and everything is working fine though...&lt;/P&gt; 
&lt;P&gt;I'm not sure why the connection is not doing well here....&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;For you reference&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dbconnection" style="width: 504px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9vX.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128480i9F96F9FBAB601FA7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9vX.png" alt="0683p000009M9vX.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;dbconnection&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tablelist" style="width: 514px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9uL.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157787i437C96C42B328177/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9uL.png" alt="0683p000009M9uL.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;tablelist&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 10:52:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Whole-Database-Migration-MSSQL-gt-MySQL-using-Dynamic-Schema/m-p/2223459#M16577</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-04T10:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Whole Database Migration (MSSQL-&gt;MySQL) using Dynamic Schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Whole-Database-Migration-MSSQL-gt-MySQL-using-Dynamic-Schema/m-p/2223460#M16578</link>
      <description>&lt;P&gt;Check the tDBCommit/tDBRollBack and desable Close Connection&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 11:09:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Whole-Database-Migration-MSSQL-gt-MySQL-using-Dynamic-Schema/m-p/2223460#M16578</guid>
      <dc:creator>JohnRMK</dc:creator>
      <dc:date>2020-03-04T11:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: Whole Database Migration (MSSQL-&gt;MySQL) using Dynamic Schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Whole-Database-Migration-MSSQL-gt-MySQL-using-Dynamic-Schema/m-p/2223461#M16579</link>
      <description>It works perfectly!!
&lt;BR /&gt;Thank you so much!!!</description>
      <pubDate>Wed, 04 Mar 2020 14:38:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Whole-Database-Migration-MSSQL-gt-MySQL-using-Dynamic-Schema/m-p/2223461#M16579</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-04T14:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Whole Database Migration (MSSQL-&gt;MySQL) using Dynamic Schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Whole-Database-Migration-MSSQL-gt-MySQL-using-Dynamic-Schema/m-p/2223462#M16580</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPbYAAW"&gt;@JohnRMK&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks for helping me out previously.&lt;/P&gt; 
&lt;P&gt;After comparing the input source with output, I noticed that the primary key fields (column) and primary composite key is not generated in the output database.&lt;/P&gt; 
&lt;P&gt;Is there a way to migrated&amp;nbsp;primary key fields (column) and primary composite key together with the tables and its data(+schemas)? My tables have around 1~4&amp;nbsp;primary key fields (column).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Source Database: MSSQL&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mssql-input" style="width: 198px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA16.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142819i06389BE3F8D210B2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA16.png" alt="0683p000009MA16.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;mssql-input&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Output: MySQL&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mysql-output" style="width: 616px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA1B.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135887iDE22D84CD621C7BB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA1B.png" alt="0683p000009MA1B.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;mysql-output&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 01:41:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Whole-Database-Migration-MSSQL-gt-MySQL-using-Dynamic-Schema/m-p/2223462#M16580</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-09T01:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Whole Database Migration (MSSQL-&gt;MySQL) using Dynamic Schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Whole-Database-Migration-MSSQL-gt-MySQL-using-Dynamic-Schema/m-p/2223463#M16581</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;Like I said in my first post, the job I gave you is just for migrating data.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If you want to add the constraints of integrity, it will be necessary to develop a little but it remains easy.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here is the approach to automatically migrate the keys.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;First, you will request the database schema and list all the integrity constraints.&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;Here is the query to do that. &lt;A href="https://dataedo.com/kb/query/sql-server/list-all-table-constraints" target="_blank" rel="nofollow noopener noreferrer"&gt;https://dataedo.com/kb/query/sql-server/list-all-table-constraints&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;You can use tDBInput to execute the query like the image below.&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="2020-03-09_10h29_36.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA1f.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144018i4B2E946360F92D79/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA1f.png" alt="0683p000009MA1f.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;You recover the data in a file or SQL Server table then for each table you generate a query in order to update structures and add the keys.&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="2020-03-09_10h28_35.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9sj.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156011i622749E6426952E9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9sj.png" alt="0683p000009M9sj.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;You will use tDBRow and in it you will have a request for style&lt;BR /&gt;"ALTER TABLE GLOBAL_VARIABLE ADD CONSTRAINT ........" you can use tJavaRow to perform the concatenation or a tMap and you can iterate on the different constraints with tFlowToIterate and you can use like the first job&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;-&amp;gt; tJava (blank) ==&amp;gt; On Subjub Ok ==&amp;gt; tDBRow (query to add)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In the example below, I use the same approach to create the tables and add a primary key. Me, all my tables have the Id columns as key so it's easy but you just have to modify the query a bit and it will be fine&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="2020-03-09_10h38_44.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9kW.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142812i8B3D84D1331DED15/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9kW.png" alt="0683p000009M9kW.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If you want a last tip, try to create the tables with the constraints then you migrate the data with the dynamic schema.&lt;BR /&gt;You can use a query&amp;nbsp; in order to recover the columns and their types (or combination of tDBTableList and tDBColumnList), you carry out a conversion to MySql type and you generate your requests with tMap or tJava. You execute the creation of the tables with the constraints then you migrate the data. you can do it in 3 jobs and you already have 2. It's the same process used in the job attached (migration from MySql to Snowflake)&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;Good luck&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Ly1O"&gt;Snowflake-DynamicMigration-Studio7 (1).zip&lt;/A&gt;</description>
      <pubDate>Mon, 09 Mar 2020 09:46:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Whole-Database-Migration-MSSQL-gt-MySQL-using-Dynamic-Schema/m-p/2223463#M16581</guid>
      <dc:creator>JohnRMK</dc:creator>
      <dc:date>2020-03-09T09:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Whole Database Migration (MSSQL-&gt;MySQL) using Dynamic Schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Whole-Database-Migration-MSSQL-gt-MySQL-using-Dynamic-Schema/m-p/2223464#M16582</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPbYAAW"&gt;@JohnRMK&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks for getting back to me.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here I have tried creating job design as you mentioned above, however I'm not how it works here.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;You will use tDBRow and in it you will have a request for style
"ALTER TABLE GLOBAL_VARIABLE ADD CONSTRAINT ........" you can use tJavaRow to perform the &lt;BR /&gt;concatenation or a tMap and you can iterate on the different constraints with tFlowToIterate and &lt;BR /&gt;you can use like the first job

-&amp;gt; tJava (blank) ==&amp;gt; On Subjub Ok ==&amp;gt; tDBRow (query to add)&lt;/PRE&gt; 
&lt;P&gt;I feel that this might not be the right one, but could please help point out how could I improve?&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="job-design &amp;amp;amp; input" style="width: 584px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9tJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128339iCD06BD349194604B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9tJ.png" alt="0683p000009M9tJ.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;job-design &amp;amp; input&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tMap (schema)" style="width: 643px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9gT.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129191iD1D618C5242DCEE8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9gT.png" alt="0683p000009M9gT.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;tMap (schema)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Next I want ask the statement for altering the table, i replace 'global_variable' with the global variable string but i'm not sure about what I should put for constraint??&amp;nbsp;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;'PK_'global variable +PRIMARY KEYS(?)&lt;/P&gt; 
&lt;P&gt;In my case, my primary keys columns is usually about 1-4, and column also differs by table.&lt;/P&gt; 
&lt;P&gt;What should I put for primary keys? Is there something like a global variable for this?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;**I'm still a novice in SQL&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dbRow" style="width: 643px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA2O.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136243i3ED5D7D8F3B2E720/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA2O.png" alt="0683p000009MA2O.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;dbRow&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 17:07:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Whole-Database-Migration-MSSQL-gt-MySQL-using-Dynamic-Schema/m-p/2223464#M16582</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-09T17:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: Whole Database Migration (MSSQL-&gt;MySQL) using Dynamic Schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Whole-Database-Migration-MSSQL-gt-MySQL-using-Dynamic-Schema/m-p/2223465#M16583</link>
      <description>&lt;P&gt;Did you check the job a give you ?&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;What you are trying to do requires a little programming.&lt;BR /&gt;You collect your keys from a base table.&lt;BR /&gt;Then you group each table with these keys (you can use tAggregatRow ==&amp;gt; as output you must have &amp;lt;Table_1; Pk_1, Pk_2 ..&amp;gt;&lt;BR /&gt;Then in a tMap you add characters to form a request&lt;/P&gt; 
&lt;P&gt;"ALTER TABLE" + GLOBAL_VAR (Table name) + "ADD CONSTRAINT" + GLOBAL_VAR (List of table keys) + ";"&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;ALTER TABLE table_name (to replace with global variable)
  ADD CONSTRAINT table_PK_name (to replace with global variable)
    PRIMARY KEY (last_name, first_name); (to replace with global variable after aggregation)&lt;/PRE&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-03-09_18h15_37.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9wv.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144888iDB0D464904042BDD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9wv.png" alt="0683p000009M9wv.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In the image below I use the same principle to add columns to a database.&lt;BR /&gt;I generate dynamic query that I inject into a tDBRow&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I just developed the job for you. I only create the request for PK to you to develop the second part of the sub-job for foreign keys or indexes&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="2020-03-09_18h53_04.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA2P.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150530i55FD0BF077E49383/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA2P.png" alt="0683p000009MA2P.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;I can't do more than that you normally have.&lt;/P&gt; 
&lt;P&gt;Sorry, i made an error in the script (inside of tMap ==&amp;gt; ALTER Table not ALTER TABME)&lt;BR /&gt;(Add the connection to the SQL Server database and it will work without problem)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Ly1x"&gt;PK_DYNAMIC_GEN_MySQL.zip&lt;/A&gt;</description>
      <pubDate>Mon, 09 Mar 2020 17:21:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Whole-Database-Migration-MSSQL-gt-MySQL-using-Dynamic-Schema/m-p/2223465#M16583</guid>
      <dc:creator>JohnRMK</dc:creator>
      <dc:date>2020-03-09T17:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Whole Database Migration (MSSQL-&gt;MySQL) using Dynamic Schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Whole-Database-Migration-MSSQL-gt-MySQL-using-Dynamic-Schema/m-p/2223466#M16584</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPbYAAW"&gt;@JohnRMK&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you for your clarification.&lt;/P&gt; 
&lt;P&gt;I was able to group each tables with keys as the following&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="dynamic PK's job design" style="width: 531px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9wg.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133590i4FD3B8D592E2AA94/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9wg.png" alt="0683p000009M9wg.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;dynamic PK's job design&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;tMap&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dynamic_pk mapping" style="width: 495px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9sU.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152778iE47D26A97CD8C98A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9sU.png" alt="0683p000009M9sU.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;dynamic_pk mapping&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here's the result ,,,, somehow table with 'one key' has its one key repeated here ...&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;traveltour.tbl_mem|ALTER TABLE traveltour.tbl_mem ADD CONSTRAINT PK_tbl_mem,PK_tbl_mem PRIMARY (&lt;FONT color="#FF9900"&gt;&lt;STRONG&gt;mem_id,mem_id&lt;/STRONG&gt;&lt;/FONT&gt;);
Table Name = traveltour.tbl_mem 
 AND the Query is = ALTER TABLE traveltour.tbl_mem ADD CONSTRAINT PK_tbl_mem,PK_tbl_mem PRIMARY (&lt;FONT color="#FF9900"&gt;&lt;STRONG&gt;mem_id,mem_id&lt;/STRONG&gt;&lt;/FONT&gt;);&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;However, I still do have question about how I should set tDBRow?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here is my DBRow's component and schema setting&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DBRow's setting" style="width: 550px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA0O.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155699i26A3B04C5D29083F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA0O.png" alt="0683p000009MA0O.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;DBRow's setting&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;For schema I make is the same as tMap's output(query_build).&lt;/P&gt; 
&lt;P&gt;I used a global variable&amp;nbsp;((String)globalMap.get("tDBTableList_1_CURRENT_TABLE")) for table name.&lt;/P&gt; 
&lt;P&gt;As for query, I'm not sure if I could use a global variable here or used row name??? I kinda used both here ....&lt;/P&gt; 
&lt;P&gt;For PRIMARY KEY in query statement, I put it as 'Id' as I'm not sure how I could call it here, since I assume that I could not use 'rowname.details ' like I used it in tMap.&lt;/P&gt; 
&lt;P&gt;Would appreciate if you elaborate more on DBRow's Component and Schema (point mentioned above)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;After making this work, I will move on to try indexes and foreign keys&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you so muchhhh!!&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 08:27:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Whole-Database-Migration-MSSQL-gt-MySQL-using-Dynamic-Schema/m-p/2223466#M16584</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-10T08:27:47Z</dc:date>
    </item>
  </channel>
</rss>

