<?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: Writting comments in tMSSQLINPUT in Talend 5 in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Writting-comments-in-tMSSQLINPUT-in-Talend-5/m-p/2324033#M93789</link>
    <description>The problem is that tMSSqlInput replaces the CR/LF that you enter in the Query with spaces because the Java code cannot have a String broken across lines. As a result, parts of your SQL get commented out incorrectly when passed to SQL Server.
&lt;BR /&gt;Instead use /** and **/ to delimit your comments i.e.
&lt;BR /&gt;"/** write comment **/
&lt;BR /&gt;select * from employee
&lt;BR /&gt;where 
&lt;BR /&gt;/** write comment **/
&lt;BR /&gt;employee.id = 123"
&lt;BR /&gt;or force the line-feeds in i.e.
&lt;BR /&gt;"-- write comment\r
&lt;BR /&gt;select * from employee
&lt;BR /&gt;where
&lt;BR /&gt;-- write comment\r
&lt;BR /&gt;employee.id = 123"</description>
    <pubDate>Tue, 14 May 2013 00:17:39 GMT</pubDate>
    <dc:creator>alevy</dc:creator>
    <dc:date>2013-05-14T00:17:39Z</dc:date>
    <item>
      <title>Writting comments in tMSSQLINPUT in Talend 5</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Writting-comments-in-tMSSQLINPUT-in-Talend-5/m-p/2324031#M93787</link>
      <description>Dears, &lt;BR /&gt;I'm trying to enter some commnets inside my huge queries. I'm using talend 5 and Microsoft SQL Server 2008 r2.&lt;BR /&gt;The problem is, when i'm tesing those queries after writting the comments using this format, for example&lt;BR /&gt;---write comment&lt;BR /&gt;select * from employees&lt;BR /&gt;where &lt;BR /&gt;---write comment&lt;BR /&gt;employee_id = 123&lt;BR /&gt;&lt;BR /&gt;The query is executed successfully, but when it is executed in daily scheduled jobs. I got error &lt;BR /&gt;java.sql.SQLException:Incorrect syntax near 'WHERE'.&lt;BR /&gt;&lt;BR /&gt;My question is there any option i have to enable in talend component (tMSSQLINPUT), to enable comments from sql query.&lt;BR /&gt;Thanks.</description>
      <pubDate>Mon, 13 May 2013 06:54:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Writting-comments-in-tMSSQLINPUT-in-Talend-5/m-p/2324031#M93787</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-13T06:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Writting comments in tMSSQLINPUT in Talend 5</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Writting-comments-in-tMSSQLINPUT-in-Talend-5/m-p/2324032#M93788</link>
      <description>Hi, 
&lt;BR /&gt;So far, there is no such option in components tMSSQLInput component. How about 
&lt;A href="https://help.talend.com/search/all?query=Calling+a+stored+procedure+or+function&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;Calling a stored procedure or function&lt;/A&gt; so that the SQL query is written in Microsoft SQL Server 2008 r2.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Mon, 13 May 2013 07:33:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Writting-comments-in-tMSSQLINPUT-in-Talend-5/m-p/2324032#M93788</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-13T07:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Writting comments in tMSSQLINPUT in Talend 5</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Writting-comments-in-tMSSQLINPUT-in-Talend-5/m-p/2324033#M93789</link>
      <description>The problem is that tMSSqlInput replaces the CR/LF that you enter in the Query with spaces because the Java code cannot have a String broken across lines. As a result, parts of your SQL get commented out incorrectly when passed to SQL Server.
&lt;BR /&gt;Instead use /** and **/ to delimit your comments i.e.
&lt;BR /&gt;"/** write comment **/
&lt;BR /&gt;select * from employee
&lt;BR /&gt;where 
&lt;BR /&gt;/** write comment **/
&lt;BR /&gt;employee.id = 123"
&lt;BR /&gt;or force the line-feeds in i.e.
&lt;BR /&gt;"-- write comment\r
&lt;BR /&gt;select * from employee
&lt;BR /&gt;where
&lt;BR /&gt;-- write comment\r
&lt;BR /&gt;employee.id = 123"</description>
      <pubDate>Tue, 14 May 2013 00:17:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Writting-comments-in-tMSSQLINPUT-in-Talend-5/m-p/2324033#M93789</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2013-05-14T00:17:39Z</dc:date>
    </item>
  </channel>
</rss>

