<?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 insert into many DB tables at once? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-insert-into-many-DB-tables-at-once/m-p/2236366#M25094</link>
    <description>Hi,
&lt;BR /&gt;depending on your needs you can do:
&lt;BR /&gt;a) more than on tRow/Output behind another
&lt;BR /&gt;b) split your flow with tReplicate (same metadata)
&lt;BR /&gt;c) use a tMap to split your flow (different metadata)
&lt;BR /&gt;Bye
&lt;BR /&gt;Volker</description>
    <pubDate>Tue, 09 Sep 2008 21:22:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-09-09T21:22:31Z</dc:date>
    <item>
      <title>How to insert into many DB tables at once?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-insert-into-many-DB-tables-at-once/m-p/2236364#M25092</link>
      <description>Tags: &lt;BR /&gt;Hi all.&lt;BR /&gt;    I have to read a file Excel and for each record, i need to write  on many database tables.&lt;BR /&gt;I tried to use tFileInput and tDBOutput but i found i can write only on *one* table.  How can i perform many operations for each row?&lt;BR /&gt;By the way, operations for a single row must be in a  transaction: if something goes wrong, they have to rollback.  Also this, i do not know how to do.&lt;BR /&gt;Someone may suggest me some hint?&lt;BR /&gt;Thank you</description>
      <pubDate>Sat, 16 Nov 2024 14:14:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-insert-into-many-DB-tables-at-once/m-p/2236364#M25092</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert into many DB tables at once?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-insert-into-many-DB-tables-at-once/m-p/2236365#M25093</link>
      <description>What database are you using?
&lt;BR /&gt;For most databases, you have the following types of components:
&lt;BR /&gt;tConnection
&lt;BR /&gt;tRow
&lt;BR /&gt;tCommit
&lt;BR /&gt;tRollback
&lt;BR /&gt;The tRow component allows you to execute ONE SQL command for the current row in your input stream (in your case a row from the Excel spreadsheet). 
&lt;BR /&gt;If your right click on most components, under trigger, you'll see OnComponentOK and OnComponentError. So, you would use the Rollback if there was an error.
&lt;BR /&gt;Perhaps someone else could post a more detailed example - my time is short today.</description>
      <pubDate>Tue, 09 Sep 2008 19:12:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-insert-into-many-DB-tables-at-once/m-p/2236365#M25093</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-09-09T19:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert into many DB tables at once?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-insert-into-many-DB-tables-at-once/m-p/2236366#M25094</link>
      <description>Hi,
&lt;BR /&gt;depending on your needs you can do:
&lt;BR /&gt;a) more than on tRow/Output behind another
&lt;BR /&gt;b) split your flow with tReplicate (same metadata)
&lt;BR /&gt;c) use a tMap to split your flow (different metadata)
&lt;BR /&gt;Bye
&lt;BR /&gt;Volker</description>
      <pubDate>Tue, 09 Sep 2008 21:22:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-insert-into-many-DB-tables-at-once/m-p/2236366#M25094</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-09-09T21:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert into many DB tables at once?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-insert-into-many-DB-tables-at-once/m-p/2236367#M25095</link>
      <description>Hi,&lt;BR /&gt;I have the same need: I read an Excel spreadssheet and I need to insert in 3 tables of my PostgreSQL database.&lt;BR /&gt;In tableA, I use some columns to insert a row, as this is an auto increment column (SERIAL) I get a new id value = idA.&lt;BR /&gt;In tableB, I use some other columns, plus idA to insert a row, as this is an auto increment column (SERIAL) I get a new value id = idB.&lt;BR /&gt;In table C, I use idA and idB to insert a new row !&lt;BR /&gt;I have created a few others jobs before, to insert rows on tables with SERIAL columns from Excel ... but so far, I have never needed to re-use the value of the id, so I don't know how to do this.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for any help,&lt;BR /&gt;L.</description>
      <pubDate>Wed, 10 Sep 2008 17:23:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-insert-into-many-DB-tables-at-once/m-p/2236367#M25095</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-09-10T17:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert into many DB tables at once?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-insert-into-many-DB-tables-at-once/m-p/2236368#M25096</link>
      <description>Hi,&lt;BR /&gt;sorry I haven't had this problem . So I couldn't give you a solution. But have you tried to use tlLastInsertId ?&lt;BR /&gt;This could solve your problem. This component is very new. So, depending on your version, not available.&lt;BR /&gt;Bye&lt;BR /&gt;Volker</description>
      <pubDate>Wed, 10 Sep 2008 20:46:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-insert-into-many-DB-tables-at-once/m-p/2236368#M25096</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-09-10T20:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert into many DB tables at once?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-insert-into-many-DB-tables-at-once/m-p/2236369#M25097</link>
      <description>Thank you all for your suggestion, i am still working on them. I am yet a newbie on talend.
&lt;BR /&gt;iroche i have to do something very similar to your example: for every row from Excel file, i have to generate a keycode which will be inserted in new records on two tables: one containing main info and the other containing additional info.
&lt;BR /&gt;So, to better explain, i have a single row to be splitted into two tables, *whose column names are different from excel ones*, and some of the field in tables are filled with extra infos (i.e constants, keycode, and evaluated expression ).
&lt;BR /&gt;By the way, how do i manage to map excel fields into DB table fields when names are different? i tried with a tMap component but cannot get it.
&lt;BR /&gt;Database is MySQL. 
&lt;BR /&gt;thank you</description>
      <pubDate>Thu, 11 Sep 2008 19:48:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-insert-into-many-DB-tables-at-once/m-p/2236369#M25097</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-09-11T19:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert into many DB tables at once?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-insert-into-many-DB-tables-at-once/m-p/2236370#M25098</link>
      <description>Hi,
&lt;BR /&gt;one idea for your foreign key problem: Can you read the table after the insert again?
&lt;BR /&gt;For mapping Excel to you database: tMap is the right one. The best way is to define your Excel-metadata, than connect to your tMap, define you database (with metadata) and as *last* step map tMap to your database. TOS will ask you if you would like to use the metadata for tMap. Say yes and do your mapping.
&lt;BR /&gt;Bye
&lt;BR /&gt;Volker</description>
      <pubDate>Thu, 11 Sep 2008 20:28:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-insert-into-many-DB-tables-at-once/m-p/2236370#M25098</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-09-11T20:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert into many DB tables at once?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-insert-into-many-DB-tables-at-once/m-p/2236371#M25099</link>
      <description>Ok, i will try, thank you.</description>
      <pubDate>Fri, 12 Sep 2008 08:57:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-insert-into-many-DB-tables-at-once/m-p/2236371#M25099</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-09-12T08:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert into many DB tables at once?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-insert-into-many-DB-tables-at-once/m-p/2236372#M25100</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Hi,&lt;BR /&gt;depending on your needs you can do:&lt;BR /&gt;a) more than on tRow/Output behind another&lt;BR /&gt;b) split your flow with tReplicate (same metadata)&lt;BR /&gt;c) use a tMap to split your flow (different metadata)&lt;BR /&gt;Bye&lt;BR /&gt;Volker&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Thank you Volker, it works! I followed exaclty the order you suggested, and now tMap propose me the rigth DB colum names.
&lt;BR /&gt;In my previous trial, tMap proposed me the file schema for both input and output mapping
&lt;BR /&gt;To be honest, i do not know why previous map was wrong.</description>
      <pubDate>Fri, 12 Sep 2008 11:57:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-insert-into-many-DB-tables-at-once/m-p/2236372#M25100</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-09-12T11:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert into many DB tables at once?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-insert-into-many-DB-tables-at-once/m-p/2236373#M25101</link>
      <description>The logic how (or when) TOS adopt the metadata of the previous or next component is sometimes confusing (for me).&lt;BR /&gt;But this is one of the rules i learned in the time I use TOS. First the database, then the tMap. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;Bye&lt;BR /&gt;Volker</description>
      <pubDate>Fri, 12 Sep 2008 21:44:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-insert-into-many-DB-tables-at-once/m-p/2236373#M25101</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-09-12T21:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert into many DB tables at once?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-insert-into-many-DB-tables-at-once/m-p/2236374#M25102</link>
      <description>hi&lt;BR /&gt;I have a excel sheet as the input source and Mysql db tale as output, i can insert data from &lt;BR /&gt;excel sheet to table. but i want another thing to do, i want to add another new row for each&lt;BR /&gt;rows in the table&lt;BR /&gt;how can i do this</description>
      <pubDate>Thu, 24 Sep 2009 09:10:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-insert-into-many-DB-tables-at-once/m-p/2236374#M25102</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-24T09:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert into many DB tables at once?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-insert-into-many-DB-tables-at-once/m-p/2236375#M25103</link>
      <description>Hello ishk
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;but i want another thing to do, i want to add another new row for each&lt;BR /&gt;rows in the table&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Can give us example to explain your request? I will show you a job.
&lt;BR /&gt;Best regards
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Fri, 25 Sep 2009 07:35:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-insert-into-many-DB-tables-at-once/m-p/2236375#M25103</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-25T07:35:51Z</dc:date>
    </item>
  </channel>
</rss>

