<?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 Generating Unique sequence number when same job running in two different systems in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Generating-Unique-sequence-number-when-same-job-running-in-two/m-p/2237763#M26082</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I got stuck how to get the unique&amp;nbsp;sequence number when the same job runs in two different machines at the same time in the same table. The sequence number should be unique and update the rows in the same table without any rows missed.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;looking for any suggestions.&lt;/P&gt; 
&lt;P&gt;Thanks in Advance&lt;/P&gt;</description>
    <pubDate>Wed, 03 Oct 2018 09:54:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-10-03T09:54:56Z</dc:date>
    <item>
      <title>Generating Unique sequence number when same job running in two different systems</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generating-Unique-sequence-number-when-same-job-running-in-two/m-p/2237763#M26082</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I got stuck how to get the unique&amp;nbsp;sequence number when the same job runs in two different machines at the same time in the same table. The sequence number should be unique and update the rows in the same table without any rows missed.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;looking for any suggestions.&lt;/P&gt; 
&lt;P&gt;Thanks in Advance&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2018 09:54:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generating-Unique-sequence-number-when-same-job-running-in-two/m-p/2237763#M26082</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-03T09:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Generating Unique sequence number when same job running in two different systems</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generating-Unique-sequence-number-when-same-job-running-in-two/m-p/2237764#M26083</link>
      <description>&lt;P&gt;The only way to do this is to use a database sequence (if you can) or to hold the sequence in another location that both (all) jobs have access to. I generally use a database sequence to handle anything that requires a sequence that isn't reset after the job has finished running.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2018 10:09:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generating-Unique-sequence-number-when-same-job-running-in-two/m-p/2237764#M26083</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-03T10:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Generating Unique sequence number when same job running in two different systems</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generating-Unique-sequence-number-when-same-job-running-in-two/m-p/2237765#M26084</link>
      <description>&lt;P&gt;Thank you for the quick&amp;nbsp;reply&lt;/P&gt;&lt;P&gt;Can u please elaborate&amp;nbsp;how would we implement in TDI for MSsql.&lt;/P&gt;&lt;P&gt;please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;raghav&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2018 10:53:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generating-Unique-sequence-number-when-same-job-running-in-two/m-p/2237765#M26084</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-03T10:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Generating Unique sequence number when same job running in two different systems</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generating-Unique-sequence-number-when-same-job-running-in-two/m-p/2237766#M26085</link>
      <description>&lt;P&gt;You need to set up a sequence in your database. Take a look here for that:&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/sql/t-sql/statements/create-sequence-transact-sql?view=sql-server-2017" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.microsoft.com/en-us/sql/t-sql/statements/create-sequence-transact-sql?view=sql-server-2017&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then you need to use that sequence in Talend. To do that you can use a tMSSqlInput with code similar to below (assuming your sequence is called MySequence).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;"SELECT NEXT VALUE FOR MySequence as seqnum" &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2018 12:10:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generating-Unique-sequence-number-when-same-job-running-in-two/m-p/2237766#M26085</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-03T12:10:55Z</dc:date>
    </item>
  </channel>
</rss>

