<?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: SQL Server Multiple Insert/Update row by row in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/SQL-Server-Multiple-Insert-Update-row-by-row/m-p/2210890#M9135</link>
    <description>Yes you can using tMSSQLSP component. In case you will have few records per day you can follow this approach.
&lt;BR /&gt;tMSSQLConnection--&amp;gt;tMSSQLInput1--&amp;gt;tFlowtoIterate--&amp;gt;tMSSQLOUTOUT1--&amp;gt;tMSSQLOUTPUT2--&amp;gt;tCOMMIT
&lt;BR /&gt;1. Create connection
&lt;BR /&gt;2. Read from tab1 (Make sure to use tMSSQLConnection as connection)
&lt;BR /&gt;3. Iterate through rows read
&lt;BR /&gt;4. Insert in tab2 (Make sure to use tMSSQLConnection as connection)
&lt;BR /&gt;5. Update Tab 1 (Make sure to use tMSSQLConnection as connection)
&lt;BR /&gt;6. Commit ((Make sure to use tMSSQLConnection as connection))</description>
    <pubDate>Thu, 27 Oct 2016 05:05:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-10-27T05:05:49Z</dc:date>
    <item>
      <title>SQL Server Multiple Insert/Update row by row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-Server-Multiple-Insert-Update-row-by-row/m-p/2210885#M9130</link>
      <description>Hi,&amp;nbsp; 
&lt;BR /&gt;I started using Talend recently and I have the following problem: 
&lt;BR /&gt;I need to Insert/Update row by row a SQL Server's table (tab2) from data unloaded from another Table (tab1). At the end of every single row, I have to update a Flag in tab1.&amp;nbsp; 
&lt;BR /&gt;I would like that the commit was made at each line so that, if an error occurs, all rows have already been processed are not to be reprocessed. 
&lt;BR /&gt;the Schema is very simple, but I don't know how to link the components 
&lt;BR /&gt;Unload Tab1 &amp;nbsp;-------&amp;gt; Insert/Update Row1 Tab2 ---&amp;gt; Update Row1's Flag Tab1 &amp;nbsp;---&amp;gt; Commit Row1 --&amp;gt; Start with Row2 
&lt;BR /&gt;How can I do this? 
&lt;BR /&gt;Very Thanks and sorry for my bad English 
&lt;BR /&gt;Claudio</description>
      <pubDate>Wed, 26 Oct 2016 10:36:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-Server-Multiple-Insert-Update-row-by-row/m-p/2210885#M9130</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-26T10:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Server Multiple Insert/Update row by row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-Server-Multiple-Insert-Update-row-by-row/m-p/2210886#M9131</link>
      <description>Are both the tables on the same database?&amp;nbsp;</description>
      <pubDate>Wed, 26 Oct 2016 13:35:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-Server-Multiple-Insert-Update-row-by-row/m-p/2210886#M9131</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-26T13:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Server Multiple Insert/Update row by row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-Server-Multiple-Insert-Update-row-by-row/m-p/2210887#M9132</link>
      <description>Yes, the table are on the same DB&lt;BR /&gt;Claudio</description>
      <pubDate>Wed, 26 Oct 2016 13:43:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-Server-Multiple-Insert-Update-row-by-row/m-p/2210887#M9132</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-26T13:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Server Multiple Insert/Update row by row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-Server-Multiple-Insert-Update-row-by-row/m-p/2210888#M9133</link>
      <description>Cool. Then can't you just run this whole process as a simple Stored procedure on the database end. it will be faster.&lt;BR /&gt;If you go by row by row processing then your entire process will become very slow. I am not sure how many rows are you processing.&lt;BR /&gt;As such there is a batch size option present tMSSQLOutput component. Please specify this batch size as 1 if you want to &amp;nbsp;have a commit count of 1.</description>
      <pubDate>Wed, 26 Oct 2016 14:18:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-Server-Multiple-Insert-Update-row-by-row/m-p/2210888#M9133</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-26T14:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Server Multiple Insert/Update row by row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-Server-Multiple-Insert-Update-row-by-row/m-p/2210889#M9134</link>
      <description>Thank you!&amp;nbsp; 
&lt;BR /&gt;I'm not sure to have understand... Can I call a Stored procedure from Talend? With which component?&amp;nbsp; 
&lt;BR /&gt;This project have a few record&amp;nbsp;per day, and the customer wants to be done in Talend 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Thanks again</description>
      <pubDate>Wed, 26 Oct 2016 14:42:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-Server-Multiple-Insert-Update-row-by-row/m-p/2210889#M9134</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-26T14:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Server Multiple Insert/Update row by row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-Server-Multiple-Insert-Update-row-by-row/m-p/2210890#M9135</link>
      <description>Yes you can using tMSSQLSP component. In case you will have few records per day you can follow this approach.
&lt;BR /&gt;tMSSQLConnection--&amp;gt;tMSSQLInput1--&amp;gt;tFlowtoIterate--&amp;gt;tMSSQLOUTOUT1--&amp;gt;tMSSQLOUTPUT2--&amp;gt;tCOMMIT
&lt;BR /&gt;1. Create connection
&lt;BR /&gt;2. Read from tab1 (Make sure to use tMSSQLConnection as connection)
&lt;BR /&gt;3. Iterate through rows read
&lt;BR /&gt;4. Insert in tab2 (Make sure to use tMSSQLConnection as connection)
&lt;BR /&gt;5. Update Tab 1 (Make sure to use tMSSQLConnection as connection)
&lt;BR /&gt;6. Commit ((Make sure to use tMSSQLConnection as connection))</description>
      <pubDate>Thu, 27 Oct 2016 05:05:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-Server-Multiple-Insert-Update-row-by-row/m-p/2210890#M9135</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-27T05:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Server Multiple Insert/Update row by row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-Server-Multiple-Insert-Update-row-by-row/m-p/2210891#M9136</link>
      <description>Thank You Sankalp, really precious!</description>
      <pubDate>Thu, 27 Oct 2016 08:24:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-Server-Multiple-Insert-Update-row-by-row/m-p/2210891#M9136</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-27T08:24:52Z</dc:date>
    </item>
  </channel>
</rss>

