<?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 view SQL executed in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-view-SQL-executed/m-p/2238873#M26850</link>
    <description>From this post: 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCpLKCA0" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Generated-Sql-Insert-statement/td-p/101412&lt;/A&gt; 
&lt;BR /&gt;You need to check "Enable debug mode" in the MysqlOutput_1 advanced settings, in order for: 
&lt;BR /&gt;System.out.println(((String)globalMap.get("tMysqlOutput_1_QUERY"))); to return a non-null value.</description>
    <pubDate>Tue, 10 Dec 2013 22:45:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-12-10T22:45:14Z</dc:date>
    <item>
      <title>How to view SQL executed</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-view-SQL-executed/m-p/2238860#M26837</link>
      <description>Hi,
&lt;BR /&gt;I'm new user of TOS.
&lt;BR /&gt;I would like to view SQL generated and executed by TOS to store in log file.
&lt;BR /&gt;I create a job to read data from spreadsheet file and insert it into database (MySQL).
&lt;BR /&gt;It's work fine, but I don't know how to visualize SQL executed in my database.
&lt;BR /&gt;I use the tLogRow component to view data but output isn't SQL but raw data.
&lt;BR /&gt;I try checking Enable debug mode in advanced settings in tMySQLOutput component but nothing changes.
&lt;BR /&gt;Does anyone know how to view/store SQL ?
&lt;BR /&gt;Thx in advance.
&lt;BR /&gt;Informations:
&lt;BR /&gt;- TOS 3.0.1.r19980
&lt;BR /&gt;- Vista SP1
&lt;BR /&gt;- Java project</description>
      <pubDate>Sat, 16 Nov 2024 14:09:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-view-SQL-executed/m-p/2238860#M26837</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to view SQL executed</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-view-SQL-executed/m-p/2238861#M26838</link>
      <description>Hi Milou,
&lt;BR /&gt;I don't think that Talend do this. Talend Team can correct me if i'm wrong. but you can use TOS to extract queries from your Mysql Log file. Have a look here:http://www.howtogeek.com/howto/database/monitor-all-sql-queries-in-mysql/
&lt;BR /&gt;I hope this helps.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Youssef</description>
      <pubDate>Thu, 20 Nov 2008 15:15:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-view-SQL-executed/m-p/2238861#M26838</guid>
      <dc:creator>youssef2</dc:creator>
      <dc:date>2008-11-20T15:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to view SQL executed</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-view-SQL-executed/m-p/2238862#M26839</link>
      <description>Thx for you quick reply.&lt;BR /&gt;Can Talend Team confirm that I can't do this ? (view and log SQL executed)</description>
      <pubDate>Thu, 20 Nov 2008 16:35:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-view-SQL-executed/m-p/2238862#M26839</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-11-20T16:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to view SQL executed</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-view-SQL-executed/m-p/2238863#M26840</link>
      <description>Hello, 
&lt;BR /&gt;There is a variiable in all db output component which partially answer to your question. 
&lt;BR /&gt;Currently, there is not a global mechanism to check somewhere and that will automatically log all processed requests. 
&lt;BR /&gt;Here is an example of what you can do to resolve manually this question. 
&lt;BR /&gt;In this example, I used 
&lt;BR /&gt; 
&lt;PRE&gt;System.out.println(((String)globalMap.get("tMysqlOutput_1_QUERY")));&lt;/PRE&gt; 
&lt;BR /&gt;but this is only a starting point. You can do everything you want after.. 
&lt;BR /&gt;Regards,</description>
      <pubDate>Fri, 21 Nov 2008 16:14:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-view-SQL-executed/m-p/2238863#M26840</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-11-21T16:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to view SQL executed</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-view-SQL-executed/m-p/2238864#M26841</link>
      <description>Thanks for your workaround but I'm not totally satisfied.
&lt;BR /&gt;Because it works great for UPDATE sql request and not for INSERT:
&lt;BR /&gt;It always displays "null" instead of real sql query (INSERT INTO ....)</description>
      <pubDate>Thu, 27 Nov 2008 09:57:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-view-SQL-executed/m-p/2238864#M26841</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-11-27T09:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to view SQL executed</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-view-SQL-executed/m-p/2238865#M26842</link>
      <description>Can you share a screenshot of your job ?</description>
      <pubDate>Thu, 27 Nov 2008 18:55:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-view-SQL-executed/m-p/2238865#M26842</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-11-27T18:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to view SQL executed</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-view-SQL-executed/m-p/2238866#M26843</link>
      <description>Of Course ! 
&lt;BR /&gt;I put a row filter componant to split rows between insert and update mode. 
&lt;BR /&gt;tMysqlOutput_2 executes "update" SQL request. 
&lt;BR /&gt;tJavaRow_2 contains this code: System.out.println(((String)globalMap.get("tMysqlOutput_2_QUERY"))); 
&lt;BR /&gt;When the job is started, I can see in console all "update" request like UPDATE MyTable SET MyColumn = MyValue; .... 
&lt;BR /&gt;tMysqlOutput_1 executes "insert" SQL request. 
&lt;BR /&gt;tJavaRow_1 contains this code: System.out.println(((String)globalMap.get("tMysqlOutput_1_QUERY"))); 
&lt;BR /&gt;When the job is started, I can see in console only null instead of real SQL request.</description>
      <pubDate>Tue, 02 Dec 2008 14:59:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-view-SQL-executed/m-p/2238866#M26843</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-12-02T14:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to view SQL executed</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-view-SQL-executed/m-p/2238867#M26844</link>
      <description>I have tried exactly the same job on my side, it's working pretty well (in 3.0.2, but I don't think that there is any difference on this topic between 3.0.1 and 3.0.2).
&lt;BR /&gt;I don't understand why you have a different result....
&lt;BR /&gt;Can you tell us why you have a red cross on your tLogRow and on your tMySQLOutput ? That's a little bit strange...</description>
      <pubDate>Thu, 04 Dec 2008 20:43:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-view-SQL-executed/m-p/2238867#M26844</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-12-04T20:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to view SQL executed</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-view-SQL-executed/m-p/2238868#M26845</link>
      <description>the error message are: 
&lt;BR /&gt;- The schema from the input link "row8" is different from the schema defined in the component 
&lt;BR /&gt;- The schema from the input link "row10" is different from the schema defined in the component 
&lt;BR /&gt;I don't know why an error is displayed for the tMysqlOutput_2 componant, because the schema is the same for row10 and row13 when I edit it. 
&lt;BR /&gt;If I click on "sync columnc" button, the schema is not modified but the error disappears... It seems to be strange... 
&lt;BR /&gt;For tLoghRow_4, I've a difference in schema because I remove the primary key column in row11. 
&lt;BR /&gt;The column is an autoincrement and if I keep this column with 0 value in the flow, it will insert 0 value for each line inserted. 
&lt;BR /&gt;See my screenshot. 
&lt;BR /&gt;I am wrong ? Or must I keep this column in the schema and set null value instead of 0 ? 
&lt;BR /&gt;I don't know what is the good practice. 
&lt;BR /&gt;I think also it will be very useful for beginner to complete the collection of available tutorial with generic usecases. 
&lt;BR /&gt;You will have no more post like this. 
&lt;BR /&gt;i.e. 
&lt;BR /&gt;- How to merge/split flow in project (a post exists but only for perl project. It can be integreated in a tutorial and add java project) 
&lt;BR /&gt;- How to read a spreadsheet file and insert data into database in insert/update sql mode and how to get the last insert id for each row. 
&lt;BR /&gt;- How to view and log SQL request executed in database 
&lt;BR /&gt;- ... 
&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;</description>
      <pubDate>Fri, 05 Dec 2008 08:55:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-view-SQL-executed/m-p/2238868#M26845</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-12-05T08:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to view SQL executed</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-view-SQL-executed/m-p/2238869#M26846</link>
      <description>We are on 3.0.2 and have the same issue with the global variable returning "null" for Talend generated INSERT Sql.  Is anyone at Talend working on a bug fix for this?
&lt;BR /&gt;
&lt;BR /&gt;I have been emailing Jonathan Andry at Talend about this and it looks like he found a code change that needs to be made.
&lt;BR /&gt;
&lt;BR /&gt;Let me know if another BugTracker needs to be opened on this or whether this one is sufficient.</description>
      <pubDate>Tue, 06 Jan 2009 15:31:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-view-SQL-executed/m-p/2238869#M26846</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-01-06T15:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to view SQL executed</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-view-SQL-executed/m-p/2238870#M26847</link>
      <description>I confirm the null output of &lt;BR /&gt;System.out.println(((String)globalMap.get("tMysqlOutput_1_QUERY")));</description>
      <pubDate>Tue, 28 Sep 2010 08:34:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-view-SQL-executed/m-p/2238870#M26847</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2010-09-28T08:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to view SQL executed</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-view-SQL-executed/m-p/2238871#M26848</link>
      <description>I also confirm System.out.println(((String)globalMap.get("tMysqlOutput_1_QUERY"))); produces a bunch of nulls.</description>
      <pubDate>Thu, 03 Jan 2013 23:57:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-view-SQL-executed/m-p/2238871#M26848</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-01-03T23:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to view SQL executed</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-view-SQL-executed/m-p/2238872#M26849</link>
      <description>does anyone know if this is working yet i am also getting nulls when i try pass a var from SQL to  tJAVA</description>
      <pubDate>Wed, 06 Nov 2013 15:40:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-view-SQL-executed/m-p/2238872#M26849</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-06T15:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to view SQL executed</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-view-SQL-executed/m-p/2238873#M26850</link>
      <description>From this post: 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCpLKCA0" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Generated-Sql-Insert-statement/td-p/101412&lt;/A&gt; 
&lt;BR /&gt;You need to check "Enable debug mode" in the MysqlOutput_1 advanced settings, in order for: 
&lt;BR /&gt;System.out.println(((String)globalMap.get("tMysqlOutput_1_QUERY"))); to return a non-null value.</description>
      <pubDate>Tue, 10 Dec 2013 22:45:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-view-SQL-executed/m-p/2238873#M26850</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-10T22:45:14Z</dc:date>
    </item>
  </channel>
</rss>

