<?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: Same views, same server, different databases in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Same-views-same-server-different-databases/m-p/42086#M769698</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use as many folders like you want and also various ways possible to use dynamic code to access any databases, for example reading the folder / filename of a qvw on which a connection/filepath is branched off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further there is no need to duplicate all applications n-times else you could use &lt;A href="https://community.qlik.com/docs/DOC-9039"&gt;Section Access&lt;/A&gt; to control the access to certain applications and the data within them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jun 2018 13:02:36 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2018-06-19T13:02:36Z</dc:date>
    <item>
      <title>Same views, same server, different databases</title>
      <link>https://community.qlik.com/t5/QlikView/Same-views-same-server-different-databases/m-p/42085#M769697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, I am hoping someone can help me with a technical question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's say I am hosting 4 separate clients on one server:&lt;/P&gt;&lt;P&gt;DatabaseA&lt;/P&gt;&lt;P&gt;DatabaseB&lt;/P&gt;&lt;P&gt;DatabaseC&lt;/P&gt;&lt;P&gt;DatabaseD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And let's say I have a single view called Sales.qvw and this view needs to be there four times, once for each database.&amp;nbsp; I would rename the files to:&lt;/P&gt;&lt;P&gt;Sales_ClientA.qvw&lt;/P&gt;&lt;P&gt;Sales_ClientB.qvw&lt;/P&gt;&lt;P&gt;Sales_ClientC.qvw&lt;/P&gt;&lt;P&gt;Sales_ClientD.qvw&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already contacted Qlik Support and am told that you cannot have multiple instances of Qlik Server on one machine.&amp;nbsp; So that's out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two issues (maybe more but these are the ones I can think of immediately):&lt;/P&gt;&lt;P&gt;1) I don't want to have to hard code the database name right into the script (we are currently deploying several views per client so this becomes an admin nightmare), so I am looking to figure out if I can access a file where we store the database names.&amp;nbsp; The problem I see is that Qlik Server only allows one folder, so all views would have to be stored in the same folder.&amp;nbsp; So how would a view know which database belongs to which client to load the correct data without some sort of hard coding in the script?&amp;nbsp; Or is this inevitable?&lt;/P&gt;&lt;P&gt;2)&amp;nbsp; How do I prevent ClientB's users from seeing ClientA's data and vice versa and so on...?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone ever tried this?&amp;nbsp; Does anyone know of a technique of which I am not aware that will make this a fairly simple thing to maintain?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be most appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Same-views-same-server-different-databases/m-p/42085#M769697</guid>
      <dc:creator>raynac</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Same views, same server, different databases</title>
      <link>https://community.qlik.com/t5/QlikView/Same-views-same-server-different-databases/m-p/42086#M769698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use as many folders like you want and also various ways possible to use dynamic code to access any databases, for example reading the folder / filename of a qvw on which a connection/filepath is branched off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further there is no need to duplicate all applications n-times else you could use &lt;A href="https://community.qlik.com/docs/DOC-9039"&gt;Section Access&lt;/A&gt; to control the access to certain applications and the data within them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2018 13:02:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Same-views-same-server-different-databases/m-p/42086#M769698</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-06-19T13:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Same views, same server, different databases</title>
      <link>https://community.qlik.com/t5/QlikView/Same-views-same-server-different-databases/m-p/42087#M769699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for taking the time to respond. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Altering the Section Access section (or the view script in general) is the thing I am trying to avoid, as I will have multiple different servers with 4 or so different clients on each one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for your first statement, do you know of any articles on how to achieve this?&amp;nbsp; I have been working with Qlikview for 13 years but in a very formulaic and specific way (single server for each single client, all with the same database name) so I don't even know where to start to do this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2018 13:13:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Same-views-same-server-different-databases/m-p/42087#M769699</guid>
      <dc:creator>raynac</dc:creator>
      <dc:date>2018-06-19T13:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Same views, same server, different databases</title>
      <link>https://community.qlik.com/t5/QlikView/Same-views-same-server-different-databases/m-p/42088#M769700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure that I understand what do you want to do. If you encode the client within the path with something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;\\YourServer\Drive\QlikView\&lt;STRONG&gt;Clients\A&lt;/STRONG&gt;\Applications\...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you could for example with subfield('$(QvWorkPath)', '\', 6) identify to which client the app belonged and use this information within any condition to adjust the connection-string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2018 13:35:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Same-views-same-server-different-databases/m-p/42088#M769700</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-06-19T13:35:41Z</dc:date>
    </item>
  </channel>
</rss>

