<?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: Error - Talend tMSSQLInput in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Error-Talend-tMSSQLInput/m-p/2375757#M138103</link>
    <description>Yes,&lt;BR /&gt;&lt;BR /&gt;My context is string.&lt;BR /&gt;</description>
    <pubDate>Tue, 12 Jun 2018 12:12:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-06-12T12:12:48Z</dc:date>
    <item>
      <title>Error - Talend tMSSQLInput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-Talend-tMSSQLInput/m-p/2375755#M138101</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a problem with tMSSQl Input when I use a date&amp;nbsp;to inform where clause, but, all the time Talend Studio return me the message: "tMSSqlInput_1 java.sql.SQLException: The conversion of a varchar data type to a DateTime data type resulted in an out-of-range value."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I look DbTypes on the schema, set date, and&amp;nbsp;DateTime, but I don't understand and find any solution for my problem. In my database, the type about this column is DateTime.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note: when I put, in the where clause, a date, the component works perfectly:&amp;nbsp;&lt;STRONG&gt;AND HCA3.DATALT&amp;nbsp; BETWEEN '2018-04-30' AND '2018-06-11'&lt;/STRONG&gt;, but when I put de context information, the component doesn't work:&amp;nbsp;&lt;STRONG&gt;AND HCA3.DATALT&amp;nbsp; BETWEEN '" + context.dt_inicio + "' AND '" + context.dt_fim + "'&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone help me?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 08:07:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-Talend-tMSSQLInput/m-p/2375755#M138101</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T08:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error - Talend tMSSQLInput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-Talend-tMSSQLInput/m-p/2375756#M138102</link>
      <description>How are defined context variables, as String?</description>
      <pubDate>Tue, 12 Jun 2018 05:53:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-Talend-tMSSQLInput/m-p/2375756#M138102</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-06-12T05:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error - Talend tMSSQLInput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-Talend-tMSSQLInput/m-p/2375757#M138103</link>
      <description>Yes,&lt;BR /&gt;&lt;BR /&gt;My context is string.&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Jun 2018 12:12:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-Talend-tMSSQLInput/m-p/2375757#M138103</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-12T12:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error - Talend tMSSQLInput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-Talend-tMSSQLInput/m-p/2375758#M138104</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;From the error you're getting, its SQL parsing the string value of a date into a date thats the problem.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Typically, but not always, dates are formatted yyyy-MM-dd, so check that is how you are forming the textual versions of your dates. This kind of problem can often be masked unless you're using days after the 12th of the month.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I think the tMSSQLInput component also has a global variable QUERY which is the text actually passed to SQL Server, check that if you copy/paste this into SSMS it works correctly as well.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 13:22:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-Talend-tMSSQLInput/m-p/2375758#M138104</guid>
      <dc:creator>David_Beaty</dc:creator>
      <dc:date>2018-06-12T13:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Error - Talend tMSSQLInput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-Talend-tMSSQLInput/m-p/2375759#M138105</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I found the solution! &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133049iD780B7DE0116E4D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACJ.png" alt="0683p000009MACJ.png" /&gt;&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;To MSSQLinput work well, I need to develop some variables in SQL query to convert my context string to date format.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Look:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;"declare @DataInicial datetime, @DataFinal datetime;&lt;/P&gt; 
&lt;P&gt;set @DataInicial= Convert(datetime, '" + context.dt_inicio + "', 103);&lt;BR /&gt;set @DataFinal= Convert(datetime, '" + context.dt_fim + "', 103)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;and the where clause I put the variable that content:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;AND HCA3.DATALT&amp;nbsp; BETWEEN @DataInicial AND @DataFinal)&lt;/P&gt; 
&lt;P&gt;"&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks for your time!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 15:22:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-Talend-tMSSQLInput/m-p/2375759#M138105</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-12T15:22:56Z</dc:date>
    </item>
  </channel>
</rss>

