<?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: How to use tMSSqlLastInsertId ? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-tMSSqlLastInsertId/m-p/2326627#M96097</link>
    <description>hy, 
&lt;BR /&gt;You can try it like shown on the images. 
&lt;BR /&gt;1) Add the tMssqlLastInstertID after the output component 
&lt;BR /&gt;2) Add the new lastinsert column 
&lt;BR /&gt;3) uncheck "Use batch size" in tMssqlOutput 
&lt;BR /&gt;regards, 
&lt;BR /&gt;robert 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MB8N.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154105i352317EE209FD001/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MB8N.png" alt="0683p000009MB8N.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAvG.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155186iAA0288F77FFFE433/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAvG.png" alt="0683p000009MAvG.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MB8S.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137585i15E2E978757D6241/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MB8S.png" alt="0683p000009MB8S.png" /&gt;&lt;/span&gt;</description>
    <pubDate>Fri, 06 Sep 2013 07:56:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-09-06T07:56:51Z</dc:date>
    <item>
      <title>How to use tMSSqlLastInsertId ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-tMSSqlLastInsertId/m-p/2326626#M96096</link>
      <description>Hi I am reading a CSV file and inserting into a table in MS SQL server using TOS. 
&lt;BR /&gt;In the tMSSqlOutput table, I removed the schema for ID column because in MSSql server it is auto increment by default. 
&lt;BR /&gt;The Job is doing well. I am able to insert many rows into the table. In MSSql server each row will be inserted with ID column value incrementing by one. 
&lt;BR /&gt;I want to get the last inserted ID value in the MSSql Server in Talend. 
&lt;BR /&gt;Say in MSSQL after adding the new rows from CSV file , the last row ID is 50, I want to get the value 50. 
&lt;BR /&gt;I tried tMSSqlLastInsertId component. and I am trying to print it. 
&lt;BR /&gt;This is my Job 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;tFileInputDelimited -----&amp;gt; tMap ---&amp;gt; tMSSqlOutput -----&amp;gt; tMSSqlLastInsertId -----&amp;gt; tMap ---&amp;gt; tLogRow&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;In tMSSqlOutput, there are many columns in schema. But the primary key column is not added since there is problem in adding Identity column. 
&lt;BR /&gt;In tMSSqlLastInsertId there is only one coumn I found. I tried mapping it directly to logrow, 
&lt;BR /&gt;But it was showing Null pointer exception. 
&lt;BR /&gt;Can someone help me in that. I want to know how to connect and the mapping between tMSSqlOutpt to tLogRow 
&lt;BR /&gt;Thanks</description>
      <pubDate>Sat, 16 Nov 2024 11:54:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-tMSSqlLastInsertId/m-p/2326626#M96096</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to use tMSSqlLastInsertId ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-tMSSqlLastInsertId/m-p/2326627#M96097</link>
      <description>hy, 
&lt;BR /&gt;You can try it like shown on the images. 
&lt;BR /&gt;1) Add the tMssqlLastInstertID after the output component 
&lt;BR /&gt;2) Add the new lastinsert column 
&lt;BR /&gt;3) uncheck "Use batch size" in tMssqlOutput 
&lt;BR /&gt;regards, 
&lt;BR /&gt;robert 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MB8N.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154105i352317EE209FD001/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MB8N.png" alt="0683p000009MB8N.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAvG.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155186iAA0288F77FFFE433/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAvG.png" alt="0683p000009MAvG.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MB8S.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137585i15E2E978757D6241/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MB8S.png" alt="0683p000009MB8S.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 06 Sep 2013 07:56:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-tMSSqlLastInsertId/m-p/2326627#M96097</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-06T07:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to use tMSSqlLastInsertId ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-tMSSqlLastInsertId/m-p/2326628#M96098</link>
      <description>Thank you</description>
      <pubDate>Fri, 06 Sep 2013 08:23:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-tMSSqlLastInsertId/m-p/2326628#M96098</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-06T08:23:03Z</dc:date>
    </item>
  </channel>
</rss>

