<?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 Data Type in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Data-Type/m-p/2260832#M41821</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&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 , It's really very helpful for me . I am new to talend.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;could you please let us know what are the column you used in tmap and what you applied.&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;</description>
    <pubDate>Tue, 23 Jun 2020 19:13:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-06-23T19:13:22Z</dc:date>
    <item>
      <title>Dynamic Data Type</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Data-Type/m-p/2260828#M41817</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Trying to bring in data from MS SQL Server into MySQL using Dynamic Datatype. Lot of fields are ntext field on source tables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) What could be the equivalent data type in MySQL? Will LONGTEXT help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) How to use this with Dynamic? (I prefer Dropping and Creating new tables every time I run the job. This way, the job handles the metadata of source and target tables instead of us having to maintain the target tables.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MS SQL Server -&amp;gt; select * from sourcetable -&amp;gt; MySQL -&amp;gt; Target table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:24:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-Data-Type/m-p/2260828#M41817</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T02:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Data Type</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Data-Type/m-p/2260829#M41818</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LQsyAAG"&gt;@sachinattalend&lt;/A&gt;, you need to use it as a string data type in Talend.&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 04:37:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-Data-Type/m-p/2260829#M41818</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-05-19T04:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Data Type</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Data-Type/m-p/2260830#M41819</link>
      <description>&lt;P&gt;Talend could not make ntext of MS SQL Server to automatically convert to its corresponding datatype in MySQL.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what we did:&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Identified all ntext columns in MSSQL (backup database) and convert to text data types&lt;/P&gt;&lt;P&gt;- Ran jobs using Dynamic.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 02:51:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-Data-Type/m-p/2260830#M41819</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-09T02:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Data Type</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Data-Type/m-p/2260831#M41820</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;Unfortunately the dynamic schema has some limitations including this one and the nvarchar (max) for example in sql server.&lt;/P&gt; 
&lt;P&gt;To help you move forward, here is an approach that I have used in several projects and that works perfectly.&lt;/P&gt; 
&lt;P&gt;-You must create the target tables before retrieving the data with the dynamic schema ==&amp;gt; You can use&amp;nbsp; this script to do the same work https: // dataedo .com / kb / query / sql-server / list-columns-names-in-specific-table (execute it in a tDBInput connected to the source DB)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;-You must write a simple java routine, which takes as a parameter a column name, size, type ... and returns a character string formatted in mysql&lt;/P&gt; 
&lt;P&gt;==&amp;gt; sqlToMysqlFormat (String name, String Type, Int precision, Int length, boolean isNull)&lt;BR /&gt;Ex: sqlToMysqlFormat (FirstName, nvarchar, 0, 50, false)&lt;BR /&gt;Must return "FirstName CHAR (50) NOT NULL"&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-06-09_12h50_53.png" style="width: 937px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MZsU.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128606iB0595AA124CC4D33/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MZsU.png" alt="0683p000009MZsU.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The example routine below allows me to convert Salesforce fields to SQL Server. You have to do the same thing nothing complicated. (&lt;A href="http://www.sqlines.com/sql-server-to-mysql" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.sqlines.com/sql-server-to-mysql&lt;/A&gt;)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This routines must be applied to each attribute (in tMap after retriveing all columns list ) and then you group in a list separated by ',' (tAggregatRow group by table name and ) to get a table creation query that you will inject into a tDBRow (mysql) just before recovering data with the dynamic schema.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-06-09_12h58_30.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MZsG.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136287iB37CFA54B3F3A17F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MZsG.png" alt="0683p000009MZsG.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;After this you will have something like query="CREATE TABLE tableName (Id int .. , ....)"&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;You can delete the table if it already exists.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;P&gt;Tell me if you want more detail, or if you didn't understand a point&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-06-09_13h11_07.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MZse.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143994iC86E1C9220228166/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MZse.png" alt="0683p000009MZse.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 12:11:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-Data-Type/m-p/2260831#M41820</guid>
      <dc:creator>JohnRMK</dc:creator>
      <dc:date>2020-06-09T12:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Data Type</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Data-Type/m-p/2260832#M41821</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&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 , It's really very helpful for me . I am new to talend.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;could you please let us know what are the column you used in tmap and what you applied.&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;</description>
      <pubDate>Tue, 23 Jun 2020 19:13:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-Data-Type/m-p/2260832#M41821</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-23T19:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Data Type</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Data-Type/m-p/2260833#M41822</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;input:&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;-TableName&lt;/P&gt; 
&lt;P&gt;-ColumnName&lt;/P&gt; 
&lt;P&gt;-ColumnSize&lt;/P&gt; 
&lt;P&gt;-ColumnType&lt;/P&gt; 
&lt;P&gt;...&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Output&lt;/P&gt; 
&lt;P&gt;-TableName&lt;/P&gt; 
&lt;P&gt;-ListFieldsForScript&amp;lt;==&amp;gt; TalendRoutinesFormatSqlToMySQL(ColumnName,ColumnSize,...)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Basically, to summarize, it takes as a parameter the name of the table and all the columns and it returns the table name and a request formatted using the routine.&lt;/P&gt; 
&lt;P&gt;After tAggregatRow, You add &lt;U&gt;&lt;STRONG&gt;CREATE TABLE&lt;/STRONG&gt;&lt;/U&gt;&amp;nbsp;TableName &lt;U&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;/U&gt;ListFieldsForScript &lt;U&gt;&lt;STRONG&gt;);&lt;/STRONG&gt; &lt;/U&gt;&lt;/P&gt; 
&lt;P&gt;Then you inject that into your db with tDBRows&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 17:08:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-Data-Type/m-p/2260833#M41822</guid>
      <dc:creator>JohnRMK</dc:creator>
      <dc:date>2020-06-24T17:08:13Z</dc:date>
    </item>
  </channel>
</rss>

