<?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>article Incorrect syntax near keyword &amp;lt;fieldname&amp;gt; when loading data from MS SQL Server/ Azure SQL database in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Incorrect-syntax-near-keyword-lt-fieldname-gt-when-loading-data/ta-p/1715735</link>
    <description>&lt;P&gt;Loading data from Microsoft SQL Server or Azure SQL databases to Qlik Sense fails at one or more specific fields. Upon excluding these fields, the reload works normally.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Error message shown in the data load progress dialogue and document log is &amp;nbsp;&lt;I&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Incorrect syntax near keyword &amp;lt;fieldname&amp;gt; &lt;/SPAN&gt;&lt;/I&gt;or&amp;nbsp;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&lt;I&gt;Connector reply error ***&lt;/I&gt;&lt;/SPAN&gt;, although Qlik Sense script editor does not prompt for any syntax error.&lt;BR /&gt;&lt;BR /&gt;The issue is only observed when a number of specific words, such as "Function" or "References", are used as field names in the database.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="data load progress.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/55083iC0F718F37BBB4888/image-size/large?v=v2&amp;amp;px=999" role="button" title="data load progress.png" alt="data load progress.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="qlik-migrated-tkb-headings"&gt;Resolution:&lt;/P&gt;
&lt;P&gt;Tables/ columns named with reserved keywords should be quoted with double quotes or square brackets in order for the containing SQL query to work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="qlik-migrated-tkb-headings"&gt;Cause:&lt;/P&gt;
&lt;P&gt;Words like "Function", "References" are reserved keywords for Microsoft SQL Server or Azure SQL databases, which cannot be used directly as object names in SQL queries.&lt;BR /&gt;A complete list of reserved keywords for&amp;nbsp;for Microsoft SQL Server or Azure SQL can be found at&amp;nbsp;&lt;A href="https://msdn.microsoft.com/en-us/library/ms189822.aspx" target="_blank" rel="noopener"&gt;https://msdn.microsoft.com/en-us/library/ms189822.aspx&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 17 May 2021 07:23:42 GMT</pubDate>
    <dc:creator>Sonja_Bauernfeind</dc:creator>
    <dc:date>2021-05-17T07:23:42Z</dc:date>
    <item>
      <title>Incorrect syntax near keyword &lt;fieldname&gt; when loading data from MS SQL Server/ Azure SQL database</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Incorrect-syntax-near-keyword-lt-fieldname-gt-when-loading-data/ta-p/1715735</link>
      <description>&lt;P&gt;Loading data from Microsoft SQL Server or Azure SQL databases to Qlik Sense fails at one or more specific fields. Upon excluding these fields, the reload works normally.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Error message shown in the data load progress dialogue and document log is &amp;nbsp;&lt;I&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Incorrect syntax near keyword &amp;lt;fieldname&amp;gt; &lt;/SPAN&gt;&lt;/I&gt;or&amp;nbsp;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&lt;I&gt;Connector reply error ***&lt;/I&gt;&lt;/SPAN&gt;, although Qlik Sense script editor does not prompt for any syntax error.&lt;BR /&gt;&lt;BR /&gt;The issue is only observed when a number of specific words, such as "Function" or "References", are used as field names in the database.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="data load progress.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/55083iC0F718F37BBB4888/image-size/large?v=v2&amp;amp;px=999" role="button" title="data load progress.png" alt="data load progress.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="qlik-migrated-tkb-headings"&gt;Resolution:&lt;/P&gt;
&lt;P&gt;Tables/ columns named with reserved keywords should be quoted with double quotes or square brackets in order for the containing SQL query to work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="qlik-migrated-tkb-headings"&gt;Cause:&lt;/P&gt;
&lt;P&gt;Words like "Function", "References" are reserved keywords for Microsoft SQL Server or Azure SQL databases, which cannot be used directly as object names in SQL queries.&lt;BR /&gt;A complete list of reserved keywords for&amp;nbsp;for Microsoft SQL Server or Azure SQL can be found at&amp;nbsp;&lt;A href="https://msdn.microsoft.com/en-us/library/ms189822.aspx" target="_blank" rel="noopener"&gt;https://msdn.microsoft.com/en-us/library/ms189822.aspx&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 07:23:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Incorrect-syntax-near-keyword-lt-fieldname-gt-when-loading-data/ta-p/1715735</guid>
      <dc:creator>Sonja_Bauernfeind</dc:creator>
      <dc:date>2021-05-17T07:23:42Z</dc:date>
    </item>
  </channel>
</rss>

