<?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 AW:Re: AW:Re: Section Access with MySQL Database in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Section-Access-with-MySQL-Database/m-p/175815#M713688</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have removed the section access and the tables are connected by the field user_name in the data model. So a connection between the tables is possible..&lt;/P&gt;&lt;P&gt;Furthermore I have added some more tables with dummy data and deactivated the strict exclusion but I still get the no access message on restarting the document. I have replaced the user_name with the sapuser to remove the connection table (user allocation). What confuses me is the fact that it works if I use a csv-flatfile or an internal table with the same data structure.&lt;/P&gt;&lt;P&gt;My source code looks like this:&lt;/P&gt;&lt;P&gt;ODBC CONNECT TO QV_VGV_MYSQL;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Section Access;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM `qvr_vgv`.`tbl_section_access`;&lt;BR /&gt;&lt;BR /&gt;Section Application;&lt;BR /&gt;SQL SELECT region,&lt;BR /&gt; SAPUSER,&lt;BR /&gt; value&lt;BR /&gt;FROM `qvr_vgv`.`tbl_auth_dummy_data_1`;&lt;BR /&gt;&lt;BR /&gt;SQL SELECT costs,&lt;BR /&gt; SAPUSER&lt;BR /&gt;FROM `qvr_vgv`.`tbl_auth_dummy_data_2`;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and my table content:&lt;/P&gt;&lt;P&gt;[access table]&lt;/P&gt;&lt;P&gt;ACCESS NTNAME SAPUSER&lt;BR /&gt;ADMIN VAILLANT\bjbraune brauneb&lt;BR /&gt;ADMIN VAILLANT\skoenen koenens&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[dummy table]&lt;/P&gt;&lt;P&gt;SAPUSER costs&lt;BR /&gt;brauneb 7343464&lt;BR /&gt;koenens 34349976&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[dummy table]&lt;/P&gt;&lt;P&gt;SAPUSER region value&lt;BR /&gt;koenens de 432433&lt;BR /&gt;koenens en 7575&lt;BR /&gt;brauneb de 76731&lt;BR /&gt;brauneb nl 654687&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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Nov 2010 14:49:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-11-10T14:49:09Z</dc:date>
    <item>
      <title>Section Access with MySQL Database</title>
      <link>https://community.qlik.com/t5/QlikView/Section-Access-with-MySQL-Database/m-p/175809#M713682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to create a section access for my QlikView document.&lt;/P&gt;&lt;P&gt;But it does not work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my source code:&lt;/P&gt;&lt;P&gt;----------------&lt;/P&gt;&lt;P&gt;Section Access;&lt;BR /&gt;SQL SELECT ACCESS,&lt;BR /&gt; NTNAME,&lt;BR /&gt; USER_NAME&lt;BR /&gt;FROM `qvr_vgv`.`tbl_section_access`;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Section Application;&lt;/P&gt;&lt;P&gt;user_allocation:&lt;BR /&gt;SQL SELECT USER_NAME,&lt;BR /&gt; SAPUSER&lt;BR /&gt;FROM `qvr_vgv`.`tbl_user_allocation`;&lt;/P&gt;&lt;P&gt;----------------&lt;/P&gt;&lt;P&gt;I think the problem are the [ that have to be around the fields access and ntname.&lt;/P&gt;&lt;P&gt;I have tried to rename the db fields with the brackets as well as renaming the fileds within the sql statement (ACCESS AS [ACCESS]) but this does not work either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have any idea please answer.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Simon Koenen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Nov 2010 14:20:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Section-Access-with-MySQL-Database/m-p/175809#M713682</guid>
      <dc:creator />
      <dc:date>2010-11-08T14:20:54Z</dc:date>
    </item>
    <item>
      <title>Section Access with MySQL Database</title>
      <link>https://community.qlik.com/t5/QlikView/Section-Access-with-MySQL-Database/m-p/175810#M713683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What part doesn't work exactly? The script doesn't run, the user can't login or the data is not filtered properly?&lt;/P&gt;&lt;P&gt;With NTNAME make sure you include the domain or include the NTDOMAINSID field. Also, a step that many developers miss when filtering data with section access is ticking the checkbox to enable Initial Data Reduction based on Section Access in the Opening tab in Document Settings.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Nov 2010 16:43:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Section-Access-with-MySQL-Database/m-p/175810#M713683</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-11-08T16:43:52Z</dc:date>
    </item>
    <item>
      <title>Section Access with MySQL Database</title>
      <link>https://community.qlik.com/t5/QlikView/Section-Access-with-MySQL-Database/m-p/175811#M713684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Simon,&lt;/P&gt;&lt;P&gt;First of all, I'd give a try to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Section Access;LOAD UPPER(ACCESS) AS ACCESS, UPPER(NTNAME) AS NTNAME, UPPER(USER_NAME) AS USER; // USER is required to ask the user for additional login, otherwise, leave it as USER_NAME //UPPER(PASSWORD) AS PASSWORD // Uncomment it if you are going to use the USER field, otherwise, delete it SQL SELECT ACCESS, NTNAME, USER_NAMEFROM `qvr_vgv`.`tbl_section_access`; Section Application; user_allocation:NOCONCATENATE LOAD *;SQL SELECT USER_NAME, SAPUSERFROM `qvr_vgv`.`tbl_user_allocation`;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope that helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Nov 2010 19:46:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Section-Access-with-MySQL-Database/m-p/175811#M713684</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-11-08T19:46:57Z</dc:date>
    </item>
    <item>
      <title>AW:Re: Section Access with MySQL Database</title>
      <link>https://community.qlik.com/t5/QlikView/Section-Access-with-MySQL-Database/m-p/175812#M713685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all thank you for your tips I have tried to change my statements in the way Miguel A. Baeyens has mentioned but it still does not work.&lt;/P&gt;&lt;P&gt;Here are a few more details. I hope this will help you understanding my problem:&lt;/P&gt;&lt;P&gt;The MySQL Database looks like this:&lt;/P&gt;&lt;P&gt;tbl_section_access:&lt;/P&gt;&lt;P&gt;ACCESS NTNAME USER_NAME&lt;BR /&gt;ADMIN VAILLANT\skoenen SKOENEN&lt;BR /&gt;ADMIN VAILLANT\bjbraune BJBRAUNE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tbl_user_allocation:&lt;/P&gt;&lt;P&gt;USER_NAME SAPUSER&lt;BR /&gt;SKOENEN KOENENS&lt;BR /&gt;BJBRAUNE BRAUNEB&lt;/P&gt;&lt;P&gt;My main objective is, that the user opens the document and if he has a valid authorization he will only see the data he is authorized for. In my case I need the connection between the Windows User and the SAP User. If I login the system has to limit the user allocation table to my sapuser and if my collegue logs in he will only see his sapuser.&lt;/P&gt;&lt;P&gt;If I use an Excelfile containing the necessary data (both tables) it works but if I use the same table structure within a mysql database the fields are empty and after closing the qv file I am not able to open it anymore because the message appears that I am not authorized. I think this problem has something to do with the brackets around the field names but if I change my sql statement within the section access and put a load statement in the head of it this does also effects the authorization error.&lt;/P&gt;&lt;P&gt;I hope this makes everything a bit easier to understand.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 07:46:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Section-Access-with-MySQL-Database/m-p/175812#M713685</guid>
      <dc:creator />
      <dc:date>2010-11-09T07:46:52Z</dc:date>
    </item>
    <item>
      <title>AW:Re: Section Access with MySQL Database</title>
      <link>https://community.qlik.com/t5/QlikView/Section-Access-with-MySQL-Database/m-p/175813#M713686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to reorganize the Section Access table like to contain only fields NTNAME and the desired restriciton field, ex SAPUSER .&lt;/P&gt;&lt;P&gt;Later on, one table contains a field called SAPUSER with uppercase field name, and uppercase content&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;Section Access;&lt;BR /&gt;&lt;BR /&gt;LOAD&lt;BR /&gt; UPPER(t1.NTNAME) as NTNAME,&lt;BR /&gt; UPPER(t2.SAPUSER) as SAPUSER;&lt;BR /&gt;SQL select .. from `qvr_vgv`.`tbl_section_access` t1 inner join `qvr_vgv`.`tbl_user_allocation` t2 on t1.USER_NAME = t2.USER_NAME&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Section Application;&lt;BR /&gt;user_allocation:&lt;BR /&gt; ..&lt;BR /&gt; Supper(SAPUSER) as SAPUSER&lt;BR /&gt; ..&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;-Alex&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 09:47:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Section-Access-with-MySQL-Database/m-p/175813#M713686</guid>
      <dc:creator />
      <dc:date>2010-11-09T09:47:11Z</dc:date>
    </item>
    <item>
      <title>AW:Re: Section Access with MySQL Database</title>
      <link>https://community.qlik.com/t5/QlikView/Section-Access-with-MySQL-Database/m-p/175814#M713687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Simon,&lt;/P&gt;&lt;P&gt;I see some things here. What Alexandru says in the post above seems to be related. If you are not able to log into the document, I assume you are using "Reduce Data..." and "Strict Exclusion", then it's not a user/password issue, since it's not asking for the password three times, but avoiding you to open the document. If that's the case, be sure that a SAPUSER exists in your datamodel further than just the Auth table.&lt;/P&gt;&lt;P&gt;My guess is that SAPUSER field is not present in any other table in the datamodel, so when it asks for login and password, then QlikView reduces according to that user, the document becomes empty, so you cannot access it.&lt;/P&gt;&lt;P&gt;If you want your users only see some information (records) but not all of them, then you should add in some tables SAPUSER as field. Take the following example. Say your users are sales agents, that are only allowed to see information about their own clients, but not other sales agents' clients. SAPUSER field would correspond to field "Sales Agent" in "Clients" table, so any client will have a field with that information, so any user will be able to login.&lt;/P&gt;&lt;P&gt;Is that right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 17:53:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Section-Access-with-MySQL-Database/m-p/175814#M713687</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-11-09T17:53:48Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Re: Section Access with MySQL Database</title>
      <link>https://community.qlik.com/t5/QlikView/Section-Access-with-MySQL-Database/m-p/175815#M713688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have removed the section access and the tables are connected by the field user_name in the data model. So a connection between the tables is possible..&lt;/P&gt;&lt;P&gt;Furthermore I have added some more tables with dummy data and deactivated the strict exclusion but I still get the no access message on restarting the document. I have replaced the user_name with the sapuser to remove the connection table (user allocation). What confuses me is the fact that it works if I use a csv-flatfile or an internal table with the same data structure.&lt;/P&gt;&lt;P&gt;My source code looks like this:&lt;/P&gt;&lt;P&gt;ODBC CONNECT TO QV_VGV_MYSQL;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Section Access;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM `qvr_vgv`.`tbl_section_access`;&lt;BR /&gt;&lt;BR /&gt;Section Application;&lt;BR /&gt;SQL SELECT region,&lt;BR /&gt; SAPUSER,&lt;BR /&gt; value&lt;BR /&gt;FROM `qvr_vgv`.`tbl_auth_dummy_data_1`;&lt;BR /&gt;&lt;BR /&gt;SQL SELECT costs,&lt;BR /&gt; SAPUSER&lt;BR /&gt;FROM `qvr_vgv`.`tbl_auth_dummy_data_2`;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and my table content:&lt;/P&gt;&lt;P&gt;[access table]&lt;/P&gt;&lt;P&gt;ACCESS NTNAME SAPUSER&lt;BR /&gt;ADMIN VAILLANT\bjbraune brauneb&lt;BR /&gt;ADMIN VAILLANT\skoenen koenens&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[dummy table]&lt;/P&gt;&lt;P&gt;SAPUSER costs&lt;BR /&gt;brauneb 7343464&lt;BR /&gt;koenens 34349976&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[dummy table]&lt;/P&gt;&lt;P&gt;SAPUSER region value&lt;BR /&gt;koenens de 432433&lt;BR /&gt;koenens en 7575&lt;BR /&gt;brauneb de 76731&lt;BR /&gt;brauneb nl 654687&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Nov 2010 14:49:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Section-Access-with-MySQL-Database/m-p/175815#M713688</guid>
      <dc:creator />
      <dc:date>2010-11-10T14:49:09Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Re: Section Access with MySQL Database</title>
      <link>https://community.qlik.com/t5/QlikView/Section-Access-with-MySQL-Database/m-p/175816#M713689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Simon,&lt;/P&gt;&lt;P&gt;It is wierd that everything works from a flat file and not SQL so try putting using the trim() function around the fields you are importing from SQL to make sure you don't have an extra character causing problems.&lt;/P&gt;&lt;P&gt;Section Access;&lt;BR /&gt;LOAD UPPER(trim(ACCESS)) AS ACCESS,&lt;BR /&gt; UPPER(trim(NTNAME)) AS NTNAME,&lt;BR /&gt; UPPER(trim(USER_NAME)) AS USER_NAME&lt;BR /&gt;SQL SELECT * FROM `qvr_vgv`.`tbl_section_access`;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Nov 2010 15:33:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Section-Access-with-MySQL-Database/m-p/175816#M713689</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-11-10T15:33:30Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Re: Section Access with MySQL Database</title>
      <link>https://community.qlik.com/t5/QlikView/Section-Access-with-MySQL-Database/m-p/175817#M713690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Besides that, and following my code example above and as suggested by Karl in the previous post, note that all fields in section access must be uppercase (both name and values).&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Nov 2010 20:00:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Section-Access-with-MySQL-Database/m-p/175817#M713690</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-11-10T20:00:10Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Re: AW:Re: Section Access with MySQL Database</title>
      <link>https://community.qlik.com/t5/QlikView/Section-Access-with-MySQL-Database/m-p/175818#M713691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have changed the fields to capital letters (upper) and removed the empty spaces (trim) as Karl has written and it works.&lt;/P&gt;&lt;P&gt;Thank you very much for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Nov 2010 09:18:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Section-Access-with-MySQL-Database/m-p/175818#M713691</guid>
      <dc:creator />
      <dc:date>2010-11-11T09:18:35Z</dc:date>
    </item>
  </channel>
</rss>

