<?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 UDC based on views in Management &amp; Governance</title>
    <link>https://community.qlik.com/t5/Management-Governance/SQL-UDC-based-on-views/m-p/5770#M128</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Levi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your answer,&lt;/P&gt;&lt;P&gt;issue was the attribute table, defined with varchar(0).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UDC is working well now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Jan 2018 16:10:48 GMT</pubDate>
    <dc:creator>mickael_weqan</dc:creator>
    <dc:date>2018-01-26T16:10:48Z</dc:date>
    <item>
      <title>SQL UDC based on views</title>
      <link>https://community.qlik.com/t5/Management-Governance/SQL-UDC-based-on-views/m-p/5768#M126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it possible to configure an user directory connector based on 2 views?&lt;/P&gt;&lt;P&gt;I've got this issue when I apply my configuration :&amp;nbsp; Error when validating tables: One or more of the expected tables QS_USER and QS_USER_ATTRIBUTE are not present. &lt;/P&gt;&lt;P&gt;QS_USER and QS_USER_ATTRIBUTE are 2 views with this schema : &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" height="155" src="https://community.qlik.com/legacyfs/online/191074_Capture.PNG" style="height: 155px; width: 161.126px;" width="161" /&gt;&lt;/P&gt;&lt;P&gt;QS_USER_ATTRIBUTE is empty for the moment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your answer,&lt;/P&gt;&lt;P&gt;Mickael.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 16:33:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/SQL-UDC-based-on-views/m-p/5768#M126</guid>
      <dc:creator>mickael_weqan</dc:creator>
      <dc:date>2018-01-23T16:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: SQL UDC based on views</title>
      <link>https://community.qlik.com/t5/Management-Governance/SQL-UDC-based-on-views/m-p/5769#M127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;-- Create the database if needed&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;CREATE DATABASE QlikUsers;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;-- Create table basic user table&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;USE [QlikUsers]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;GO&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;CREATE TABLE users_basic (&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;userid varchar(255) NOT NULL,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;name varchar(255)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;-- Fill in user info&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;USE [QlikUsers]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;GO&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;INSERT INTO [dbo].[users_basic]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;([userid]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;,[name])&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;VALUES &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;('jhdoe', 'John Doe');&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;-- Create table basic attributes table&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;USE [QlikUsers]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;GO&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;CREATE TABLE attributes_basic (&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;userid varchar(255) NOT NULL,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;type varchar(255),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;value varchar(255),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;-- Fill in attribute info&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;USE [QlikUsers]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;GO&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;INSERT INTO [dbo].[attributes_basic]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;([userid]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;,[type]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;,[value])&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;VALUES &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;('jhdoe', 'Role', 'foo');&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;-- Create user view&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;CREATE VIEW [user_basic_view] AS&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;SELECT userid, name&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FROM [dbo].[users_basic];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;-- Create attribute view&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;CREATE VIEW [attributes_basic_view] AS&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;SELECT userid, type, value&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FROM [dbo].[attributes_basic];&lt;/SPAN&gt;&lt;BR /&gt;
&lt;/PRE&gt;&lt;P&gt;Sense Configuration:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="kmgh5u6.png" class="jive-image image-1" src="https://i.imgur.com/kmgh5u6.png" style="height: 355px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2018 15:45:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/SQL-UDC-based-on-views/m-p/5769#M127</guid>
      <dc:creator>Levi_Turner</dc:creator>
      <dc:date>2018-01-26T15:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: SQL UDC based on views</title>
      <link>https://community.qlik.com/t5/Management-Governance/SQL-UDC-based-on-views/m-p/5770#M128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Levi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your answer,&lt;/P&gt;&lt;P&gt;issue was the attribute table, defined with varchar(0).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UDC is working well now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2018 16:10:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/SQL-UDC-based-on-views/m-p/5770#M128</guid>
      <dc:creator>mickael_weqan</dc:creator>
      <dc:date>2018-01-26T16:10:48Z</dc:date>
    </item>
  </channel>
</rss>

