<?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: execution of insert statement from a file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/execution-of-insert-statement-from-a-file/m-p/2224815#M17375</link>
    <description>For the above solution , I am not able to execute the first insert statement .</description>
    <pubDate>Tue, 23 Dec 2008 10:11:57 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2008-12-23T10:11:57Z</dc:date>
    <item>
      <title>execution of insert statement from a file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/execution-of-insert-statement-from-a-file/m-p/2224812#M17372</link>
      <description>Hello,
&lt;BR /&gt;my OS is Windows 2000 SP4, I use TOS Version 3.0 and the generated language is Java. I use a mySQL database,
&lt;BR /&gt;I need to execute up to thousands of insert statements, which are delivered in several files.
&lt;BR /&gt;The problem is, that there doesn't seem to be a component, which takes a number of SQL commands rather than data from Strings, and then executes command by command.
&lt;BR /&gt;Is there a solution to this problem ?</description>
      <pubDate>Sat, 16 Nov 2024 14:09:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/execution-of-insert-statement-from-a-file/m-p/2224812#M17372</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: execution of insert statement from a file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/execution-of-insert-statement-from-a-file/m-p/2224813#M17373</link>
      <description>I use the following to do this regularly; 
&lt;BR /&gt; 
&lt;BR /&gt;tFileInputDelimited ------&amp;gt; tDB2Row 
&lt;BR /&gt; 
&lt;BR /&gt;Put your commands - one to a line - into a text file. 
&lt;BR /&gt;INSERT INTO TABLENAME VALUES (1, 'George Smith', '312 Your Street', 'Peanutville, NB') 
&lt;BR /&gt;INSERT INTO TABLENAME VALUES (18, 'Sam Van Goh', '2 Scenic View Dr', 'Yada, CA') 
&lt;BR /&gt;INSERT INTO TABLENAME VALUES (3, 'Howard Duck', '18 Cotton Picking Lane', 'Flower Hills, NY') 
&lt;BR /&gt;Schema for the Input File will be SQLCommand 
&lt;BR /&gt;Read the text file and send the commands to (in your case a tMySQLRow) via a Main link. 
&lt;BR /&gt;The Query for the tMySQLRow will be: 
&lt;BR /&gt;row1.SQLCommand</description>
      <pubDate>Mon, 24 Nov 2008 20:56:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/execution-of-insert-statement-from-a-file/m-p/2224813#M17373</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-11-24T20:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: execution of insert statement from a file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/execution-of-insert-statement-from-a-file/m-p/2224814#M17374</link>
      <description>Thank you very much for this solution !</description>
      <pubDate>Thu, 18 Dec 2008 15:36:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/execution-of-insert-statement-from-a-file/m-p/2224814#M17374</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-12-18T15:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: execution of insert statement from a file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/execution-of-insert-statement-from-a-file/m-p/2224815#M17375</link>
      <description>For the above solution , I am not able to execute the first insert statement .</description>
      <pubDate>Tue, 23 Dec 2008 10:11:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/execution-of-insert-statement-from-a-file/m-p/2224815#M17375</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2008-12-23T10:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: execution of insert statement from a file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/execution-of-insert-statement-from-a-file/m-p/2224816#M17376</link>
      <description>Hi, 
&lt;BR /&gt;It's better to replace tMySQLRow to the tMySQLOutput or tMySQLBulk.* components. 
&lt;BR /&gt;tMySQLOutput component will generate automatically a proper SQL to insert data from your file. 
&lt;BR /&gt;If you have several FILES, take a look in DemoProject (embedded in the product) or 
&lt;A href="http://www.talend.com/resources/documentation.php" target="_blank" rel="nofollow noopener noreferrer"&gt;the documentation&lt;/A&gt; on tFileList components and Iterate link. 
&lt;BR /&gt;Best regards;</description>
      <pubDate>Tue, 23 Dec 2008 10:21:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/execution-of-insert-statement-from-a-file/m-p/2224816#M17376</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-12-23T10:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: execution of insert statement from a file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/execution-of-insert-statement-from-a-file/m-p/2224817#M17377</link>
      <description>Hi Christophe,
&lt;BR /&gt;but tMySQLOutput needs data in the input file not a SQL-Stament?
&lt;BR /&gt;@srinath: What do you have as input? And do you get any error on execution?
&lt;BR /&gt;Bye
&lt;BR /&gt;Volker</description>
      <pubDate>Tue, 23 Dec 2008 10:30:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/execution-of-insert-statement-from-a-file/m-p/2224817#M17377</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-12-23T10:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: execution of insert statement from a file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/execution-of-insert-statement-from-a-file/m-p/2224818#M17378</link>
      <description>I'm pretty sure that he has a Delimited or Excel file.&lt;BR /&gt;I agree Volker, you have to use a tFileInputDelimited or tFileInputExcel in Input to read data from a file and put the stream into a tMySQLoutput or Bulk components.&lt;BR /&gt;Best regards;</description>
      <pubDate>Tue, 23 Dec 2008 10:50:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/execution-of-insert-statement-from-a-file/m-p/2224818#M17378</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-12-23T10:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: execution of insert statement from a file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/execution-of-insert-statement-from-a-file/m-p/2224819#M17379</link>
      <description>In my case, I regularly transfer data between two different databases (Informix and DB2) on two separate machines. The tables are named the same and have the same structures on each of the systems.&lt;BR /&gt;I simply generate the statements - such as in my previous post - and execute them.  It works fine.  I, first thought I would have to write a custom job for each table.  But with 800+ tables, it would have never been able to be maintained.  With my method, I have ONE set of jobs do the work for all tables.  &lt;BR /&gt;In this way, TOS never has to be concerned with the structure of the data stream.  It just passes on the command to the database and lets the database do all the work.&lt;BR /&gt;Maybe this only works w/DB2 though.  I haven't tried it on any other databases yet.</description>
      <pubDate>Thu, 12 Mar 2009 21:40:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/execution-of-insert-statement-from-a-file/m-p/2224819#M17379</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-03-12T21:40:34Z</dc:date>
    </item>
  </channel>
</rss>

