<?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 [resolved] How to run a .sql file in Talend in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-run-a-sql-file-in-Talend/m-p/2348595#M115704</link>
    <description>Hi,
&lt;BR /&gt;I have a .sql file which contains my ETL scripts. How can i trigger it directly from Talend.
&lt;BR /&gt;I can run the statements directly from tMSSqlRow but i want to keep the scripts in a file and want Talend to pick the .sql file and execute it on SqlServer DB.</description>
    <pubDate>Tue, 19 Feb 2013 14:05:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-02-19T14:05:25Z</dc:date>
    <item>
      <title>[resolved] How to run a .sql file in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-run-a-sql-file-in-Talend/m-p/2348595#M115704</link>
      <description>Hi,
&lt;BR /&gt;I have a .sql file which contains my ETL scripts. How can i trigger it directly from Talend.
&lt;BR /&gt;I can run the statements directly from tMSSqlRow but i want to keep the scripts in a file and want Talend to pick the .sql file and execute it on SqlServer DB.</description>
      <pubDate>Tue, 19 Feb 2013 14:05:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-run-a-sql-file-in-Talend/m-p/2348595#M115704</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-19T14:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to run a .sql file in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-run-a-sql-file-in-Talend/m-p/2348596#M115705</link>
      <description>Hi, &lt;BR /&gt;Talend studio is a Java code generator, and your problem is similar with "how to execute sql-script file in Java", please refer to:&lt;BR /&gt;&lt;A href="http://stackoverflow.com/questions/2071682/how-to-execute-sql-script-file-in-java" rel="nofollow noopener noreferrer"&gt;http://stackoverflow.com/questions/2071682/how-to-execute-sql-script-file-in-java&lt;/A&gt;&lt;BR /&gt;In Talend, you can write some Java as suggested in this page in &lt;A href="https://help.talend.com/search/all?query=tJava&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;tJava&lt;/A&gt;component. Another solution can be to read all contents from the script file to a statement and execute it on tMssqlRow component.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Wed, 20 Feb 2013 02:36:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-run-a-sql-file-in-Talend/m-p/2348596#M115705</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-20T02:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to run a .sql file in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-run-a-sql-file-in-Talend/m-p/2348597#M115706</link>
      <description>hi,&lt;BR /&gt;perhaps you can try tSystem to exe mysql via command line with something like :&lt;BR /&gt;&lt;PRE&gt;    mysql db_name &amp;lt; script.sql&amp;gt; output.tab&lt;/PRE&gt;&lt;BR /&gt;hope it helps&lt;BR /&gt;regards&lt;BR /&gt;laurent</description>
      <pubDate>Mon, 25 Feb 2013 15:13:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-run-a-sql-file-in-Talend/m-p/2348597#M115706</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-25T15:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to run a .sql file in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-run-a-sql-file-in-Talend/m-p/2348598#M115707</link>
      <description>Hi dnahata_infocepts, &lt;BR /&gt;From above solutions, is it useful and helpful for you?&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Tue, 26 Feb 2013 02:18:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-run-a-sql-file-in-Talend/m-p/2348598#M115707</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-26T02:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to run a .sql file in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-run-a-sql-file-in-Talend/m-p/2348599#M115708</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Hi dnahata_infocepts, &lt;BR /&gt;From above solutions, is it useful and helpful for you?&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;Hi,&lt;BR /&gt;I was able to achieve this using both the approaches:&lt;BR /&gt; 1. From command prompt using sqlcmd&lt;BR /&gt; 2. Reading the Sql File, storing it in a variable and passing the variable to tMSSqlRow&lt;BR /&gt;Thanks for your inputs.&lt;BR /&gt;Best Regards,&lt;BR /&gt;Diwakar</description>
      <pubDate>Tue, 26 Feb 2013 06:49:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-run-a-sql-file-in-Talend/m-p/2348599#M115708</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-26T06:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to run a .sql file in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-run-a-sql-file-in-Talend/m-p/2348600#M115709</link>
      <description>Hi, &lt;BR /&gt;It is great, thanks for your feedback.&lt;BR /&gt;Best regards&lt;BR /&gt;Sbrina</description>
      <pubDate>Tue, 26 Feb 2013 07:36:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-run-a-sql-file-in-Talend/m-p/2348600#M115709</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-26T07:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to run a .sql file in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-run-a-sql-file-in-Talend/m-p/2348601#M115710</link>
      <description>Hi Sabrina,&lt;BR /&gt;Sorry to resurrect this thread so feel free to push me to open a new one if you feel so.&lt;BR /&gt;Basically I believe Talend is missing an important feature which is to be able to load internal resources. Keeping a sql file related to the project inside the project makes all sense to me. Then able to load that resource could be easily achieved just interacting with the file system once the job is exploded. Talend could even allow classpath:// resource loading meaning providing a directory where custom resources could be added and later on referred from --classpath  from the shell/batch script java command invocation.&lt;BR /&gt;Does it make sense to you? It would look like a fgeature request.&lt;BR /&gt;Thanks,&lt;BR /&gt;- Nestor</description>
      <pubDate>Tue, 02 Apr 2013 16:43:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-run-a-sql-file-in-Talend/m-p/2348601#M115710</guid>
      <dc:creator>nestoru</dc:creator>
      <dc:date>2013-04-02T16:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to run a .sql file in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-run-a-sql-file-in-Talend/m-p/2348602#M115711</link>
      <description>It is possible to do. Please take a look to the component tSQLScriptParser.&lt;BR /&gt;I had the same problem and solved it:&lt;BR /&gt;&lt;A href="http://www.talendforge.org/exchange/index.php?eid=724&amp;amp;product=tos&amp;amp;action=view&amp;amp;nav=2,1,1" rel="nofollow noopener noreferrer"&gt;http://www.talendforge.org/exchange/index.php?eid=724&amp;amp;product=tos&amp;amp;action=view&amp;amp;nav=2,1,1&lt;/A&gt;</description>
      <pubDate>Tue, 02 Apr 2013 20:08:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-run-a-sql-file-in-Talend/m-p/2348602#M115711</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-02T20:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to run a .sql file in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-run-a-sql-file-in-Talend/m-p/2348603#M115712</link>
      <description>&lt;P&gt;Hi &lt;/P&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Basically I believe Talend is missing an important feature which is to be able to load internal resources. Keeping a sql file related to the project inside the project makes all sense to me. Then able to load that resource could be easily achieved just interacting with the file system once the job is exploded. Talend could even allow classpath:// resource loading meaning providing a directory where custom resources could be added and later on referred from --classpath from the shell/batch script java command invocation.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;P&gt;&lt;BR /&gt;So far, Talend don't have this feature yet. But you can take a look at a custom component developed and shared by jlolling at Talend Exchange portal, see if it addresses your need. Follows the instructions in this page to install a custom component.&lt;BR /&gt;&lt;A href="https://help.talend.com/search/all?query=Installing+a+custom+component&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;Installing a custom component&lt;/A&gt;&lt;BR /&gt;Hope it will help you.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2013 03:24:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-run-a-sql-file-in-Talend/m-p/2348603#M115712</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-03T03:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to run a .sql file in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-run-a-sql-file-in-Talend/m-p/2348604#M115713</link>
      <description>Hi jlolling,
&lt;BR /&gt;Thanks for the component. How can I use it? I see it has an iterate what would be the syntax to run the statement in a tMSSqlRow component for example?
&lt;BR /&gt;Thanks,
&lt;BR /&gt;- Nestor</description>
      <pubDate>Wed, 03 Apr 2013 05:02:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-run-a-sql-file-in-Talend/m-p/2348604#M115713</guid>
      <dc:creator>nestoru</dc:creator>
      <dc:date>2013-04-03T05:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to run a .sql file in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-run-a-sql-file-in-Talend/m-p/2348605#M115714</link>
      <description>Hi Sabrina, 
&lt;BR /&gt;I installed tSQLScriptParser but I can't understand how to access the "sql script" defined in it let us say from a t{DB}Row component. That is the question I was asking jlolling above. In tMySQLRow BTW you can define multiple statement and there is even a ticket opened for extending that support to tSqliteRow ( 
&lt;A href="https://jira.talendforge.org/browse/TDI-20422" rel="nofollow noopener noreferrer"&gt;https://jira.talendforge.org/browse/TDI-20422&lt;/A&gt; ) for example. 
&lt;BR /&gt;So as you can see even after responding my question about how to use tSQLScriptParser there are components like tSqliteRow which will not work for multiple insertions. You can test that with a literal in the component, a tSetGlobalVar or a context parameter/variable. For cases like that it makes sense to go to command line and feed a script containing the sql statements into the sqlite3 command. That technique will work with MSSQL (using sqlcomd) or any other DB because in reality all of the DBs relational or not support running batch script contained in a different file. 
&lt;BR /&gt;Hence it makes sense I believe(going back to my statement) to allow the creation of internal resources. Simply a new entry in Repository view called "Resources" which will be at the same level as Job Designs, Contexts, Code, SQL Templates and Metadata. This will allow the inclusion of any file in the project like a "commands.sql" which very easily could be referenced by internal components if it gets to the classpath or through the use of the current run directory at run time, but more importantly the file will be accessible to external tools that are optimized to run batch sql self contained in a "resource" file. Simply trigger the external import tool from Talend passing as a param the path in the file system for the "resource". The path could even be inferred really, we use standalone deployment of Talend so we invoke the shell script that the "export" creates and we load from a property file the root directory where the jobs are so it would be easy for us to reference any path included in the result of the "export" command. 
&lt;BR /&gt;This is the proposal then: 
&lt;BR /&gt;1. Allow adding a resource file below a "Resources" section from Repository View. 
&lt;BR /&gt;2. Allow export functionality to package the "Resources" section as a directory in the final zip (simply include it as a directory in the exploded export) 
&lt;BR /&gt;With just that feature we will solve the batch processing for all databases including why not any future NoSQL DBs that might not be supported today. For example CouchDB. 
&lt;BR /&gt;Makes sense? 
&lt;BR /&gt;Thanks! 
&lt;BR /&gt;- Nestor</description>
      <pubDate>Wed, 03 Apr 2013 13:47:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-run-a-sql-file-in-Talend/m-p/2348605#M115714</guid>
      <dc:creator>nestoru</dc:creator>
      <dc:date>2013-04-03T13:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to run a .sql file in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-run-a-sql-file-in-Talend/m-p/2348606#M115715</link>
      <description>It is easy, the iterator iterates over the statements in the script and you get the current statement via the return value e.g. ((String)globalMap.get("tSQLScriptParser_1_STATEMENT_SQL")). 
&lt;BR /&gt;It is a very common technique in Talend to do this in this way. Please check in Studio the Outline view. A lot of components provides useful return values. Simple open a node in the Outline view to see what return values are available. You can drag&amp;amp; drop from this view!! 
&lt;BR /&gt;You can load the script from a file or put it into the sql editor text widget. 
&lt;BR /&gt;If you need more advanced help, please feel free to contect me at jan.lolling@cimt-ag.de. 
&lt;BR /&gt;It is actually designed for SQL. CouchDB is not an SQL database and need a json based syntax as fare as I know. 
&lt;BR /&gt;The tSQLScriptParser does not execute the statement themself, it need the help of a dedicated database component (typically the tXXXRow components).</description>
      <pubDate>Wed, 03 Apr 2013 20:54:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-run-a-sql-file-in-Talend/m-p/2348606#M115715</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-03T20:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to run a .sql file in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-run-a-sql-file-in-Talend/m-p/2348607#M115716</link>
      <description>Thanks a lot jlolling, 
&lt;BR /&gt;Very useful component for MSSQL for example. 
&lt;BR /&gt;Unfortunately it won't work for sqlite though as I posted. Not because of the component but the impossibility to run multiple statements with tSqliteRow. 
&lt;BR /&gt;What do you think about the proposal to include a "Resources" directory? Worst case scenario we are planning just to have such directory mainained out of Talend and include it in the exported zip file at the time we release the code. That way we will have it available in the execution directory and then we can run the native tools to run batches. 
&lt;BR /&gt;Thanks again for your help! 
&lt;BR /&gt;- Nestor</description>
      <pubDate>Thu, 04 Apr 2013 00:14:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-run-a-sql-file-in-Talend/m-p/2348607#M115716</guid>
      <dc:creator>nestoru</dc:creator>
      <dc:date>2013-04-04T00:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to run a .sql file in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-run-a-sql-file-in-Talend/m-p/2348608#M115717</link>
      <description>I have created a feature request ( 
&lt;A href="https://jira.talendforge.org/browse/TDI-25384" rel="nofollow noopener noreferrer"&gt;https://jira.talendforge.org/browse/TDI-25384&lt;/A&gt; ) to support inclusion of internal resources.
&lt;BR /&gt;Thanks!
&lt;BR /&gt;- Nestor</description>
      <pubDate>Fri, 05 Apr 2013 19:59:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-run-a-sql-file-in-Talend/m-p/2348608#M115717</guid>
      <dc:creator>nestoru</dc:creator>
      <dc:date>2013-04-05T19:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to run a .sql file in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-run-a-sql-file-in-Talend/m-p/2348609#M115718</link>
      <description>I guess you missed the point of my component. This component is designed for all database (also SQLite) which cannot run a script (=multiple statements at once). It iterates through a script loaded from a file or from the embedded text field. I am pretty sure, it works well for SQLite because the tSqliteRow has to run exactly one statement at the same time. 
&lt;BR /&gt;I think mostly it already exists through the Metadata. In your use case I would put the script code into the text field.</description>
      <pubDate>Sat, 06 Apr 2013 14:02:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-run-a-sql-file-in-Talend/m-p/2348609#M115718</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-06T14:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to run a .sql file in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-run-a-sql-file-in-Talend/m-p/2348610#M115719</link>
      <description>Thanks for that jlolling! 
&lt;BR /&gt; Indeed it works as you stated. I have posted now about the usage of the component in 
&lt;A href="http://thinkinginsoftware.blogspot.com/2013/04/talend-run-batch-sql-statements-from.html" rel="nofollow noopener noreferrer"&gt;http://thinkinginsoftware.blogspot.com/2013/04/talend-run-batch-sql-statements-from.html&lt;/A&gt;. 
&lt;BR /&gt;The problem is tSqliteRow does not use executeBatch() (and probably other dbs) so for many records it will be a little inefficient. 
&lt;BR /&gt;The feature request I opened will guarantee though that we rely on the efficiency of batch processing from any engine including nosql ones. 
&lt;BR /&gt;Again thank you so so much for this workaround because indeed it solved the original issue and my current issue! 
&lt;BR /&gt;Best regards, 
&lt;BR /&gt;- Nestor</description>
      <pubDate>Sat, 06 Apr 2013 17:03:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-run-a-sql-file-in-Talend/m-p/2348610#M115719</guid>
      <dc:creator>nestoru</dc:creator>
      <dc:date>2013-04-06T17:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to run a .sql file in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-run-a-sql-file-in-Talend/m-p/2348611#M115720</link>
      <description>Hi jlolling, 
&lt;BR /&gt;I was trying to post in Talend Exchange but for some reason I can't. Just to report that the Jar needs to be imported in version 5.3.0 M3 Talend complaints about not finding the har which is indeed included in xml: 
&lt;BR /&gt; &amp;lt;IMPORT NAME="cimt.talendcomp.dbtools" MODULE="cimt.talendcomp.dbtools-1.0.jar" REQUIRED="true" /&amp;gt; 
&lt;BR /&gt;And available in the file system: 
&lt;BR /&gt;ovider_5.3.0.M3_r99274/components/tSQLScriptParser 
&lt;BR /&gt;total 96 
&lt;BR /&gt;drwxrwxr-x 2 dev dev 4096 Apr 8 14:38 . 
&lt;BR /&gt;drwxr-xr-x 621 dev dev 20480 Apr 8 14:38 .. 
&lt;BR /&gt;-rw-rw-r-- 1 dev dev 53122 Apr 8 14:38 cimt.talendcomp.dbtools-1.0.jar 
&lt;BR /&gt;-rw-rw-r-- 1 dev dev 2297 Apr 8 14:38 tSQLScriptParser_begin.javajet 
&lt;BR /&gt;-rw-rw-r-- 1 dev dev 554 Apr 8 14:38 tSQLScriptParser_end.javajet 
&lt;BR /&gt;-rw-rw-r-- 1 dev dev 1512 Apr 8 14:38 tSQLScriptParser_icon32.png 
&lt;BR /&gt;-rw-rw-r-- 1 dev dev 2138 Apr 8 14:38 tSQLScriptParser_java.xml 
&lt;BR /&gt;-rw-rw-r-- 1 dev dev 458 Apr 8 14:38 tSQLScriptParser_messages.properties 
&lt;BR /&gt;dev@udesktop2:~$ 
&lt;BR /&gt; 
&lt;BR /&gt;I have seen this issue with other components before. Basically you need to "help" Talend using the Modules "View" and importing the jar file manually. 
&lt;BR /&gt;Should this be reported to Talend as a bug? 
&lt;BR /&gt;Thanks again, 
&lt;BR /&gt;-Nestor</description>
      <pubDate>Mon, 08 Apr 2013 20:00:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-run-a-sql-file-in-Talend/m-p/2348611#M115720</guid>
      <dc:creator>nestoru</dc:creator>
      <dc:date>2013-04-08T20:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to run a .sql file in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-run-a-sql-file-in-Talend/m-p/2348612#M115721</link>
      <description>This is a long lasting bug in talend indeed. Mostly it helps to delete the file &amp;lt;studio install&amp;gt;/configuration/ComponentCache.javacache and restart studio. 
&lt;BR /&gt;There is a page which explains the install procedure of custom components and some trouble shouting. 
&lt;BR /&gt; 
&lt;A href="https://help.talend.com/search/all?query=Installing+a+custom+component&amp;amp;content-lang=en" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/search/all?query=Installing+a+custom+component&amp;amp;content-lang=en&lt;/A&gt;</description>
      <pubDate>Tue, 09 Apr 2013 20:29:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-run-a-sql-file-in-Talend/m-p/2348612#M115721</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-09T20:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to run a .sql file in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-run-a-sql-file-in-Talend/m-p/2348613#M115722</link>
      <description>jlolling, Thanks a lot!
&lt;BR /&gt;- Nestor</description>
      <pubDate>Thu, 11 Apr 2013 19:52:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-run-a-sql-file-in-Talend/m-p/2348613#M115722</guid>
      <dc:creator>nestoru</dc:creator>
      <dc:date>2013-04-11T19:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to run a .sql file in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-run-a-sql-file-in-Talend/m-p/2348614#M115723</link>
      <description>Dear all,
&lt;BR /&gt;I have been trying to use the tSQLScriptParser but it always output me 'null'.
&lt;BR /&gt;I wrote all my SQL statements in a text file .sql. Each statement ends with a semicolon.
&lt;BR /&gt;So I checked "run from script", select the .sql file. Link it to a MSSqlrow and put in the query field the (String)globalMap.get("tSQLScriptParser_1_STATEMENT_SQL")). But I end up with a Sql statement cannot be null.
&lt;BR /&gt;Indeed, after logging the value with a tLogRow, the string value is null. As if the component cannot read/find the Sql statement in the file.
&lt;BR /&gt;Copying the contents of .sql file into Sqlserver studio IDE works fine. No syntax error.
&lt;BR /&gt; I have also tried to uncheck the "run from script" and write a simple sql such as "Use myDatabase" directly in the component (like the sample provided) but it fails with the same error.
&lt;BR /&gt;Has it to do with encoding "utf-8" ? Wrong component version ?
&lt;BR /&gt;Any idea ?
&lt;BR /&gt;I am using TOS 5.3 on Win 2008 server and SQLServer 2008 database.</description>
      <pubDate>Thu, 29 Aug 2013 22:57:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-run-a-sql-file-in-Talend/m-p/2348614#M115723</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-29T22:57:37Z</dc:date>
    </item>
  </channel>
</rss>

