<?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 Authentication script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Authentication-script/m-p/229755#M81643</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using upper() function:&lt;BR /&gt;'ADMIN' as ACCESS&lt;BR /&gt;upper(ULogin) as USERID&lt;BR /&gt;upper(UPassword) as PASSWORD&lt;/P&gt;&lt;P&gt;I assume that the ULogin and UPassword should be in all caps, but don't rely on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Nov 2009 07:50:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-11-03T07:50:21Z</dc:date>
    <item>
      <title>Authentication script</title>
      <link>https://community.qlik.com/t5/QlikView/Authentication-script/m-p/229754#M81642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone!&lt;/P&gt;&lt;P&gt;I'm trying to setup authentication using a combination of an inline table and a table from SQL using this script:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;EM&gt;Section Access;&lt;BR /&gt;&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; ACCESS, USERID, PASSWORD&lt;BR /&gt; Admin, admin, admin&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;CONCATENATE LOAD 'Admin' as ACCESS,&lt;BR /&gt; ULogin as USERID,&lt;BR /&gt; UPassword as PASSWORD;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM "ICS_AMD".dbo."usys_tblUsers";&lt;/EM&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;The admin user from the inline table works fine, but none of the users in my SQL table work. I took out the Section Access command and looked at the table being brought in and it appears everything is working correctly. Am I doing something wrong?&lt;/P&gt;&lt;P&gt;Thanks for any insight provided!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2009 02:16:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Authentication-script/m-p/229754#M81642</guid>
      <dc:creator />
      <dc:date>2009-11-03T02:16:31Z</dc:date>
    </item>
    <item>
      <title>Authentication script</title>
      <link>https://community.qlik.com/t5/QlikView/Authentication-script/m-p/229755#M81643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using upper() function:&lt;BR /&gt;'ADMIN' as ACCESS&lt;BR /&gt;upper(ULogin) as USERID&lt;BR /&gt;upper(UPassword) as PASSWORD&lt;/P&gt;&lt;P&gt;I assume that the ULogin and UPassword should be in all caps, but don't rely on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2009 07:50:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Authentication-script/m-p/229755#M81643</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-03T07:50:21Z</dc:date>
    </item>
    <item>
      <title>Authentication script</title>
      <link>https://community.qlik.com/t5/QlikView/Authentication-script/m-p/229756#M81644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Michael!&lt;/P&gt;&lt;P&gt;I ended up finding some posts on this last night after I made this post (its amazing what the right search terms can do) and did exactly what you outlined above. It still wouldn't work. The account loaded in the inline would work, but nothing from the SQL side would work. Strangely, I got it to work by doing what you suggested in a separate temporary table above the Section Access and then loading the contents of that temporary table straight into the Section Access like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;UsersTemp:&lt;BR /&gt;SQL SELECT 'ADMIN' as ACCESS,&lt;BR /&gt;upper(ULogin) as USERID,&lt;BR /&gt;upper(UPassword) as PASSWORD&lt;BR /&gt;FROM "ICS_AMD".dbo."usys_tblUsers";&lt;BR /&gt;Section access;&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;ACCESS, USERID, PASSWORD&lt;BR /&gt;ADMIN, ADMIN, ADMIN&lt;BR /&gt;];&lt;BR /&gt;CONCATENATE LOAD ACCESS,&lt;BR /&gt;USERID,&lt;BR /&gt;PASSWORD&lt;BR /&gt;RESIDENT UsersTemp;&lt;BR /&gt;Section Application;&lt;BR /&gt;Drop Table UsersTemp;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;When I take the exact code used to create UsersTemp and stick it after the concatenate in the Section Access, it doesn't work. It will only work the way I have it here.&lt;/P&gt;&lt;P&gt;I got the idea to try it from something I found in the QV documentation on page 512 of Book 1. It says "All the fields listed in Load or Select statements in the section access must be written in UPPER CASE. Any field name containing lower case letters in the database will be converted to upper case before being read by the Load or Select statement."&lt;/P&gt;&lt;P&gt;So for whatever its worth, thats my story. If anything, I think it is of value to document it here in the forums.&lt;/P&gt;&lt;P&gt;Thanks again Michael!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2009 21:36:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Authentication-script/m-p/229756#M81644</guid>
      <dc:creator />
      <dc:date>2009-11-03T21:36:56Z</dc:date>
    </item>
  </channel>
</rss>

