<?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 Load Silently Fails in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-Load-Silently-Fails/m-p/72487#M12014</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try converting the functions and variable to be in ANSII sql ....sometimes sql server statements are not identified and executed as per what they are purposed for.&lt;/P&gt;&lt;P&gt;Ex: Convert the statements like &lt;SPAN class="string" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: blue;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; background-color: inherit; font-size: 9pt !important;"&gt;DECLARE&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt; @StartDate NVARCHAR(25)&amp;nbsp;&amp;nbsp; , &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-style: inherit; font-weight: inherit; color: #006699; font-size: 9pt !important;"&gt;DECLARE&lt;/SPAN&gt;&lt;SPAN style="color: black; font-style: inherit; font-weight: inherit; font-size: 9pt !important;"&gt; @EndDate NVARCHAR(25)&amp;nbsp; , &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; background-color: inherit; font-size: 9pt !important;"&gt;SET&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt; @StartDate =&lt;/SPAN&gt;&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; background-color: inherit; font-size: 9pt !important;"&gt;'01-01-2017'&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp; , &lt;/SPAN&gt;&lt;/SPAN&gt;SET&lt;SPAN style="color: black; font-style: inherit; font-weight: inherit; font-family: arial, helvetica, sans-serif; font-size: 9pt !important;"&gt; @EndDate = &lt;/SPAN&gt;&lt;SPAN class="string" style="font-style: inherit; font-weight: inherit; font-family: arial, helvetica, sans-serif; color: blue; font-size: 9pt !important;"&gt;'02-01-2017',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; background-color: inherit; font-size: 9pt !important;"&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;to &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;&lt;STRONG&gt;CAST(&lt;SPAN&gt;'01-01-2017' as CHAR &lt;/SPAN&gt;) &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;or &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;CAST(&lt;SPAN&gt;'01-01-2017' as DATE &lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Similarly try to avoid these statements "&lt;SPAN class="keyword" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #006699;"&gt;OPTION&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt; (RECOMPILE)&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Make these kind of changes and test with limited load.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or best thing is do not do formatting (like type conversions) at the first load and make all formatting after your initial load.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Jun 2018 23:07:49 GMT</pubDate>
    <dc:creator>vikramv</dc:creator>
    <dc:date>2018-06-07T23:07:49Z</dc:date>
    <item>
      <title>SQL Load Silently Fails</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Load-Silently-Fails/m-p/72486#M12013</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 am having issues with loading a SQL statement in QlikView desktop. The script runs without issues but there doesn't seem to be any data in the document after the load.&amp;nbsp; Below is a very similar sql statement inside the load script. Any help would be greatly appreciated.&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15283992364423255" jivemacro_uid="_15283992364423255" modifiedtitle="true"&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;TEST:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LOAD *;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SQL&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;DECLARE @StartDate NVARCHAR(25) &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;DECLARE @EndDate NVARCHAR(25)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SET @StartDate ='01-01-2017'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SET @EndDate = '02-01-2017'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;---&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;DECLARE @vStartDate as date&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;DECLARE @vEndDate as date &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SET @vStartDate = @StartDate&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SET @vEndDate = @EndDate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SELECT &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;ht.HSP_ACCOUNT_ID&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;INTO #MAINSELECT1 &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;FROM hsp_transactions ht&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;INNER JOIN HSP_ACCOUNT ha on ht.HSP_ACCOUNT_ID=ha.HSP_ACCOUNT_ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;WHERE ht.tx_type_ha_c = 1 &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;AND&amp;nbsp; ht.tx_post_date &amp;gt;= @vStartDate and ht.tx_post_date &amp;lt; @vEndDate&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;and ht.primary_plan_id = 1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;GROUP BY &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;ht.HSP_ACCOUNT_ID&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;OPTION (RECOMPILE)&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;------&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SELECT &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;har1.HSP_ACCOUNT_ID as HAR&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;,har1.TOT_CHGS&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;,loc.loc_name as Location&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;FROM HSP_ACCOUNT har1&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;inner join #MAINSELECT1 m on har1.HSP_ACCOUNT_ID = m.HSP_ACCOUNT_ID&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;left outer join clarity_loc loc on (har1.loc_id = loc.loc_id)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;ORDER&amp;nbsp; by &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;har1.hsp_account_id&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;,har1.TOT_CHGS&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;,loc.LOC_NAME&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;OPTION (RECOMPILE)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;DROP TABLE #MAINSELECT1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2018 19:25:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Load-Silently-Fails/m-p/72486#M12013</guid>
      <dc:creator>makximenkoa</dc:creator>
      <dc:date>2018-06-07T19:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Load Silently Fails</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Load-Silently-Fails/m-p/72487#M12014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try converting the functions and variable to be in ANSII sql ....sometimes sql server statements are not identified and executed as per what they are purposed for.&lt;/P&gt;&lt;P&gt;Ex: Convert the statements like &lt;SPAN class="string" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: blue;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; background-color: inherit; font-size: 9pt !important;"&gt;DECLARE&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt; @StartDate NVARCHAR(25)&amp;nbsp;&amp;nbsp; , &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-style: inherit; font-weight: inherit; color: #006699; font-size: 9pt !important;"&gt;DECLARE&lt;/SPAN&gt;&lt;SPAN style="color: black; font-style: inherit; font-weight: inherit; font-size: 9pt !important;"&gt; @EndDate NVARCHAR(25)&amp;nbsp; , &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; background-color: inherit; font-size: 9pt !important;"&gt;SET&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt; @StartDate =&lt;/SPAN&gt;&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; background-color: inherit; font-size: 9pt !important;"&gt;'01-01-2017'&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp; , &lt;/SPAN&gt;&lt;/SPAN&gt;SET&lt;SPAN style="color: black; font-style: inherit; font-weight: inherit; font-family: arial, helvetica, sans-serif; font-size: 9pt !important;"&gt; @EndDate = &lt;/SPAN&gt;&lt;SPAN class="string" style="font-style: inherit; font-weight: inherit; font-family: arial, helvetica, sans-serif; color: blue; font-size: 9pt !important;"&gt;'02-01-2017',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; background-color: inherit; font-size: 9pt !important;"&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;to &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;&lt;STRONG&gt;CAST(&lt;SPAN&gt;'01-01-2017' as CHAR &lt;/SPAN&gt;) &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;or &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;CAST(&lt;SPAN&gt;'01-01-2017' as DATE &lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Similarly try to avoid these statements "&lt;SPAN class="keyword" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #006699;"&gt;OPTION&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt; (RECOMPILE)&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Make these kind of changes and test with limited load.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or best thing is do not do formatting (like type conversions) at the first load and make all formatting after your initial load.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2018 23:07:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Load-Silently-Fails/m-p/72487#M12014</guid>
      <dc:creator>vikramv</dc:creator>
      <dc:date>2018-06-07T23:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Load Silently Fails</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Load-Silently-Fails/m-p/72488#M12015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;are you sure your dates are in the right format for your query ?&lt;/P&gt;&lt;P&gt;if the load doesn't produce any error, that could mean there is nothing to retrieve corresponding to your query&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2018 07:19:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Load-Silently-Fails/m-p/72488#M12015</guid>
      <dc:creator>olivierrobin</dc:creator>
      <dc:date>2018-06-08T07:19:15Z</dc:date>
    </item>
  </channel>
</rss>

