<?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 Variable sql db name or schema name in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-sql-db-name-or-schema-name/m-p/885875#M308876</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are planning on setting up a centralised Qlikview environment for different clients, at first this will be run centrally, but this whole idea is still on the drawing board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;1. How do I implement a variable database name or a schema name? We are still looking at which of the two we will be using. My idea would be to have a model per client with a variable in the connection string. As we want to use the same model for all clients we might need to look at a text or excel file, or else a central database table with the variables. I am not sure though how to implement it, other that having the path name of the model giving an indication of the client..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;2. The idea the others in my team have, most do not have Qlikview experience, is having one model which you reload as needed for any of the clients. Personally i can't see how this would work, I may be wrong in thinking there is not a way of doing this. I personally think the rest of the guys think Reporting services where you can just add a dropdown list to select the database or schema name.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Is there any way of doing option 2? If now how would you do option 1.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 May 2015 09:46:02 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-05-06T09:46:02Z</dc:date>
    <item>
      <title>Variable sql db name or schema name</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-sql-db-name-or-schema-name/m-p/885875#M308876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are planning on setting up a centralised Qlikview environment for different clients, at first this will be run centrally, but this whole idea is still on the drawing board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;1. How do I implement a variable database name or a schema name? We are still looking at which of the two we will be using. My idea would be to have a model per client with a variable in the connection string. As we want to use the same model for all clients we might need to look at a text or excel file, or else a central database table with the variables. I am not sure though how to implement it, other that having the path name of the model giving an indication of the client..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;2. The idea the others in my team have, most do not have Qlikview experience, is having one model which you reload as needed for any of the clients. Personally i can't see how this would work, I may be wrong in thinking there is not a way of doing this. I personally think the rest of the guys think Reporting services where you can just add a dropdown list to select the database or schema name.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Is there any way of doing option 2? If now how would you do option 1.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 09:46:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-sql-db-name-or-schema-name/m-p/885875#M308876</guid>
      <dc:creator />
      <dc:date>2015-05-06T09:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Variable sql db name or schema name</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-sql-db-name-or-schema-name/m-p/885876#M308877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have never done such a thing - in our company, there is only one database per plant - so there are several, but we have one loading_script per database - but I cannot imagine a reason why this should not&amp;nbsp; work (your option 1).&lt;/P&gt;&lt;P&gt;The connection string, after all, is just a text string. You should be able to use variables for that. You can&lt;/P&gt;&lt;P&gt;- create a listbox (from an Inline_table) on the GUI of your app to select a database&lt;/P&gt;&lt;P&gt;- Based on that selection, you fill a variable&lt;/P&gt;&lt;P&gt;- add a button to trigger a regular reload&lt;/P&gt;&lt;P&gt;=&amp;gt; The value of that variable can be used in the connection string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this option, you need more than one way to reload the script, but that too is doable if you use conditional_execution (an IF_THEN bracket)&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 09:53:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-sql-db-name-or-schema-name/m-p/885876#M308877</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-05-06T09:53:30Z</dc:date>
    </item>
  </channel>
</rss>

