<?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 [resolved] generating a new GUID for each insert in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-generating-a-new-GUID-for-each-insert/m-p/2272834#M49999</link>
    <description>Hi I am new to Talend open studion ETL and has a question that I hope some of you experts will be able to assist me with.
&lt;BR /&gt;I have an ETL job the selects data from an informix database processes then loads it into an MSSQL, when it inserts into the MSSQL i need to generate a new GUID with a command similar to 'select newid() as GUID' from the destination MSSQL DB for each new record I insert. I could do this by setting the db to generate but it's a third party db which has a web front end that I cannot make changes to so I need to do it as part of the load, I also need to use the new GUID in a second table (this is used to join the tables).
&lt;BR /&gt;Can anyone suggest a way to run 'select newid() as GUID' each time I process a record to insert ?
&lt;BR /&gt;Any help you can give will be greatly appriciated
&lt;BR /&gt;Tony</description>
    <pubDate>Sat, 16 Nov 2024 12:52:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T12:52:18Z</dc:date>
    <item>
      <title>[resolved] generating a new GUID for each insert</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-generating-a-new-GUID-for-each-insert/m-p/2272834#M49999</link>
      <description>Hi I am new to Talend open studion ETL and has a question that I hope some of you experts will be able to assist me with.
&lt;BR /&gt;I have an ETL job the selects data from an informix database processes then loads it into an MSSQL, when it inserts into the MSSQL i need to generate a new GUID with a command similar to 'select newid() as GUID' from the destination MSSQL DB for each new record I insert. I could do this by setting the db to generate but it's a third party db which has a web front end that I cannot make changes to so I need to do it as part of the load, I also need to use the new GUID in a second table (this is used to join the tables).
&lt;BR /&gt;Can anyone suggest a way to run 'select newid() as GUID' each time I process a record to insert ?
&lt;BR /&gt;Any help you can give will be greatly appriciated
&lt;BR /&gt;Tony</description>
      <pubDate>Sat, 16 Nov 2024 12:52:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-generating-a-new-GUID-for-each-insert/m-p/2272834#M49999</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] generating a new GUID for each insert</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-generating-a-new-GUID-for-each-insert/m-p/2272835#M50000</link>
      <description>Hi Tony 
&lt;BR /&gt;Hope this topic can help you, 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCnVXCA0" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/resolved-How-to-use-UUID-keys-with-MySQL-in-Talend/td-p/88942&lt;/A&gt; 
&lt;BR /&gt;Create a routine and hard code to generate a GUID, insert it into DB on each row. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Mon, 13 Jun 2011 02:40:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-generating-a-new-GUID-for-each-insert/m-p/2272835#M50000</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-13T02:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] generating a new GUID for each insert</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-generating-a-new-GUID-for-each-insert/m-p/2272836#M50001</link>
      <description>The problem with generating a GUID outside the database is that it may not be unique as it doesn't follow the rules that the database is using for the table.&lt;BR /&gt;I've alwasy had to let the database create it and then retrieve it to use for the table join. A real pain but that's the problem with GUIDS. Globally unique and totally useless.</description>
      <pubDate>Mon, 13 Jun 2011 09:26:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-generating-a-new-GUID-for-each-insert/m-p/2272836#M50001</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2011-06-13T09:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] generating a new GUID for each insert</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-generating-a-new-GUID-for-each-insert/m-p/2272837#M50002</link>
      <description>In the end I used select newid() as GUID on the sql database then used tMap (Attached) to load a unique GUID for each record</description>
      <pubDate>Wed, 06 Jul 2011 14:26:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-generating-a-new-GUID-for-each-insert/m-p/2272837#M50002</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-06T14:26:51Z</dc:date>
    </item>
  </channel>
</rss>

