<?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 Choose connection string based on computer name in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Choose-connection-string-based-on-computer-name/m-p/322779#M706239</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;just do it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ComputerName() = 'COMPUTER_A' then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CONNECT DB1....;&lt;/P&gt;&lt;P&gt;elseif ComputerName() = 'COMPUTER_B' then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CONNECT DB2....;&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit script;&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Feb 2012 08:22:43 GMT</pubDate>
    <dc:creator>rbecher</dc:creator>
    <dc:date>2012-02-01T08:22:43Z</dc:date>
    <item>
      <title>Choose connection string based on computer name</title>
      <link>https://community.qlik.com/t5/QlikView/Choose-connection-string-based-on-computer-name/m-p/322778#M706238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a connection string that works on one pc, but not on the other, and vice versa..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So two connection strings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to do is have an if satement that checks the computer name, and if its computer A, then use connection 1, else use connection 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2012 23:29:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Choose-connection-string-based-on-computer-name/m-p/322778#M706238</guid>
      <dc:creator />
      <dc:date>2012-01-31T23:29:24Z</dc:date>
    </item>
    <item>
      <title>Choose connection string based on computer name</title>
      <link>https://community.qlik.com/t5/QlikView/Choose-connection-string-based-on-computer-name/m-p/322779#M706239</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;just do it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ComputerName() = 'COMPUTER_A' then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CONNECT DB1....;&lt;/P&gt;&lt;P&gt;elseif ComputerName() = 'COMPUTER_B' then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CONNECT DB2....;&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit script;&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2012 08:22:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Choose-connection-string-based-on-computer-name/m-p/322779#M706239</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2012-02-01T08:22:43Z</dc:date>
    </item>
  </channel>
</rss>

