<?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 SQL for SQL*server gives error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-for-SQL-server-gives-error/m-p/185593#M50030</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you missed the semicolon in the last value.&lt;/P&gt;&lt;P&gt;can you put the error?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Mar 2011 20:34:29 GMT</pubDate>
    <dc:creator>pgalvezt</dc:creator>
    <dc:date>2011-03-28T20:34:29Z</dc:date>
    <item>
      <title>SQL for SQL*server gives error</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-for-SQL-server-gives-error/m-p/185588#M50025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to load data from a SQL*Server database using the following script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;SQL&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;SELECT&lt;/B&gt; id, name, abbrev, threshold &lt;B&gt;FROM&lt;/B&gt; Timesheet.dbo."WORK_LOCATIONS";&lt;/P&gt;&lt;P&gt;I get a script error that says 'invalid column name 'threshold'.&lt;/P&gt;&lt;P&gt;Threshold is a valid column name for the SQL*Server table that I am using. I verified by running the same script in SQL*Server studio management express and it runs fine.&lt;/P&gt;&lt;P&gt;Is this error because 'threshold' is a reserved key word in QlikView?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Viral&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 16:50:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-for-SQL-server-gives-error/m-p/185588#M50025</guid>
      <dc:creator />
      <dc:date>2011-03-28T16:50:37Z</dc:date>
    </item>
    <item>
      <title>SQL for SQL*server gives error</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-for-SQL-server-gives-error/m-p/185589#M50026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I look at my SQL load script it looks like this:&lt;/P&gt;&lt;P&gt;Load id&lt;BR /&gt; name,&lt;BR /&gt; abbrev,&lt;BR /&gt; threshold;&lt;BR /&gt;SQL SELECT id,&lt;BR /&gt; name,&lt;BR /&gt; abbrev,&lt;BR /&gt; threshold&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;FROM Timesheet.dbo."WORK_LOCATIONS";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Does this work?&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 17:54:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-for-SQL-server-gives-error/m-p/185589#M50026</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-28T17:54:04Z</dc:date>
    </item>
    <item>
      <title>SQL for SQL*server gives error</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-for-SQL-server-gives-error/m-p/185590#M50027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dennis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is exactly how I have my script. It still gives the following error:&lt;/P&gt;&lt;P&gt;SQL Error:[Microsoft][ODBC SQL Server Driver][SQL Server]Invalid column name 'threshold'.&lt;BR /&gt;SQL Scriptline:&lt;BR /&gt;SQL State:S0022&lt;BR /&gt;SQL SELECT id, name, abbrev, threshold&lt;BR /&gt;FROM Timesheet.dbo."WORK_LOCATIONS"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 20:13:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-for-SQL-server-gives-error/m-p/185590#M50027</guid>
      <dc:creator />
      <dc:date>2011-03-28T20:13:18Z</dc:date>
    </item>
    <item>
      <title>SQL for SQL*server gives error</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-for-SQL-server-gives-error/m-p/185591#M50028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try dbl-quotes:&lt;BR /&gt;SQL SELECT id, name, abbrev, "threshold"&lt;BR /&gt;FROM Timesheet.dbo."WORK_LOCATIONS"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 20:19:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-for-SQL-server-gives-error/m-p/185591#M50028</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-28T20:19:42Z</dc:date>
    </item>
    <item>
      <title>SQL for SQL*server gives error</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-for-SQL-server-gives-error/m-p/185592#M50029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still no luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 20:26:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-for-SQL-server-gives-error/m-p/185592#M50029</guid>
      <dc:creator />
      <dc:date>2011-03-28T20:26:02Z</dc:date>
    </item>
    <item>
      <title>SQL for SQL*server gives error</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-for-SQL-server-gives-error/m-p/185593#M50030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you missed the semicolon in the last value.&lt;/P&gt;&lt;P&gt;can you put the error?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 20:34:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-for-SQL-server-gives-error/m-p/185593#M50030</guid>
      <dc:creator>pgalvezt</dc:creator>
      <dc:date>2011-03-28T20:34:29Z</dc:date>
    </item>
    <item>
      <title>SQL for SQL*server gives error</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-for-SQL-server-gives-error/m-p/185594#M50031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe I have the semicolon.&lt;/P&gt;&lt;P&gt;I tried the following variation of the script with same results:&lt;/P&gt;&lt;P&gt;"Work Locations":&lt;/P&gt;&lt;P&gt;LOAD id, name, abbrev, "threshold";&lt;/P&gt;&lt;P&gt;SQL SELECT id, name, abbrev, "threshold" from Timesheet.dbo."WORK_LOCATIONS";&lt;/P&gt;&lt;P&gt;Still same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 20:52:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-for-SQL-server-gives-error/m-p/185594#M50031</guid>
      <dc:creator />
      <dc:date>2011-03-28T20:52:48Z</dc:date>
    </item>
    <item>
      <title>SQL for SQL*server gives error</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-for-SQL-server-gives-error/m-p/185595#M50032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest to use the wizard (Select button) and check the option Preceding load, normaly this always returns a usefull code.&lt;BR /&gt;&lt;BR /&gt;Other things you can try is to use [threshold]&lt;/P&gt;&lt;P&gt;Or maybe&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;BR /&gt;FROM .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2011 06:23:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-for-SQL-server-gives-error/m-p/185595#M50032</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-29T06:23:23Z</dc:date>
    </item>
    <item>
      <title>SQL for SQL*server gives error</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-for-SQL-server-gives-error/m-p/185596#M50033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did it all over again using the wizard and it works now.&lt;/P&gt;&lt;P&gt;Must have been a syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks you all for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Viral&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2011 12:38:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-for-SQL-server-gives-error/m-p/185596#M50033</guid>
      <dc:creator />
      <dc:date>2011-03-29T12:38:26Z</dc:date>
    </item>
  </channel>
</rss>

