<?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: SQL Server query fails in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-Server-query-fails/m-p/1229881#M621991</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this is helpful:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="/t5/forums/searchpage/tab/message?q=Protocol Error in TDS Stream"&gt;https://community.qlik.com/search.jspa?q=Protocol+Error+in+TDS+Stream&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Feb 2017 11:22:52 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2017-02-08T11:22:52Z</dc:date>
    <item>
      <title>SQL Server query fails</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Server-query-fails/m-p/1229879#M621989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have an SQL Server DB with two table i want to extract from.&lt;/P&gt;&lt;P&gt;both are with the same structure.&lt;/P&gt;&lt;P&gt;created an ODBC connection and i'm able to extract data using sql select statements.&lt;/P&gt;&lt;P&gt;thw issue raised when i switched the query to be incremental based on an update filed at the table (datetime type).&lt;/P&gt;&lt;P&gt;the first table works as expected. the second one, which has the exact same structure DON'T...&lt;/P&gt;&lt;P&gt;the error i'm getting is (in blue and bold there is the &lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;variable&lt;/STRONG&gt;&lt;/SPAN&gt; holding the last update date):&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14864982749678175 jive_text_macro" jivemacro_uid="_14864982749678175"&gt;
&lt;P&gt;07/02/2017 21:55:23: 0025&amp;nbsp; service_req_DELTA:&lt;/P&gt;
&lt;P&gt;07/02/2017 21:55:23: 0026&amp;nbsp; LOAD *&lt;/P&gt;
&lt;P&gt;07/02/2017 21:55:24: 0027&amp;nbsp; SQL&lt;/P&gt;
&lt;P&gt;07/02/2017 21:55:24: 0028&amp;nbsp; SELECT update_time&lt;/P&gt;
&lt;P&gt;07/02/2017 21:55:24: 0029&amp;nbsp; FROM SysAid.dbo."service_req"&lt;/P&gt;
&lt;P&gt;07/02/2017 21:55:24: 0030&amp;nbsp; where update_time &amp;gt;=&lt;STRONG style="color: #0000ff;"&gt; '01/02/2017 00:00:00'&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;07/02/2017 21:55:25:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 fields found: update_time, 4,351 lines fetched&lt;/P&gt;
&lt;P&gt;07/02/2017 21:55:27: 0031&amp;nbsp; STORE * from service_req_DELTA into service_req_DELTA.qvd (qvd)&lt;/P&gt;
&lt;P&gt;07/02/2017 21:55:28: 0034&amp;nbsp; UPDATE_TIMES2:&lt;/P&gt;
&lt;P&gt;07/02/2017 21:55:28: 0035&amp;nbsp; LOAD 'service_req' as TABLE_NAME,&lt;/P&gt;
&lt;P&gt;07/02/2017 21:55:28: 0036&amp;nbsp;&amp;nbsp; Floor(Max(update_time)) as LAST_UPDATE&lt;/P&gt;
&lt;P&gt;07/02/2017 21:55:28: 0037&amp;nbsp; Resident service_req_DELTA&lt;/P&gt;
&lt;P&gt;07/02/2017 21:55:29:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 fields found: TABLE_NAME, LAST_UPDATE, 1 lines fetched&lt;/P&gt;
&lt;P&gt;07/02/2017 21:55:31: 0038&amp;nbsp; DROP Table service_req_DELTA&lt;/P&gt;
&lt;P&gt;07/02/2017 21:55:34: 0040&amp;nbsp; service_req_history_DELTA:&lt;/P&gt;
&lt;P&gt;07/02/2017 21:55:34: 0041&amp;nbsp; LOAD *&lt;/P&gt;
&lt;P&gt;07/02/2017 21:55:35: 0042&amp;nbsp; SQL&lt;/P&gt;
&lt;P&gt;07/02/2017 21:55:35: 0043&amp;nbsp; SELECT *&lt;/P&gt;
&lt;P&gt;07/02/2017 21:55:35: 0044&amp;nbsp; FROM SysAid.dbo."service_req_history"&lt;/P&gt;
&lt;P&gt;07/02/2017 21:55:35: 0045&amp;nbsp; where update_time &amp;gt;= &lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;'01/02/2017 00:00:00'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;07/02/2017 21:55:37:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Error: SQL##f - SqlState: S1000, ErrorCode: 0, ErrorMsg: [Microsoft][ODBC SQL Server Driver]Protocol error in TDS stream&lt;/P&gt;
&lt;P&gt;07/02/2017 21:55:55: 0045&amp;nbsp; EXIT Script&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why does a where clause works at one table and doesn't work at the other one? please assist&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 20:11:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Server-query-fails/m-p/1229879#M621989</guid>
      <dc:creator>shayraber</dc:creator>
      <dc:date>2017-02-07T20:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Server query fails</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Server-query-fails/m-p/1229880#M621990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont know whats causing this but &lt;SPAN style="font-size: 10pt;"&gt;according to this thread, you should try updating your ODBC-Driver or use OLEDB:&lt;/SPAN&gt;&lt;A href="https://community.qlik.com/thread/142384"&gt;Protocol Error in TDS Stream&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 10:09:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Server-query-fails/m-p/1229880#M621990</guid>
      <dc:creator>m_s</dc:creator>
      <dc:date>2017-02-08T10:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Server query fails</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Server-query-fails/m-p/1229881#M621991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this is helpful:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="/t5/forums/searchpage/tab/message?q=Protocol Error in TDS Stream"&gt;https://community.qlik.com/search.jspa?q=Protocol+Error+in+TDS+Stream&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 11:22:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Server-query-fails/m-p/1229881#M621991</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-02-08T11:22:52Z</dc:date>
    </item>
  </channel>
</rss>

