<?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 How to manage connections in load script? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-manage-connections-in-load-script/m-p/457479#M1153707</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, all&lt;/P&gt;&lt;P&gt;i was trying to use reloads depending on some condition from different databases (below is a part of my code) and met with such problem: connections do not depend on condition, i.e. connections are made always, the script make connections and then load or not load in dependence on condition... i would like my script not to connect to database if i will not to reload from it... How to solve the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ($(vFlagForReload) = 1)then&lt;/P&gt;&lt;P&gt;OLEDB CONNECT32 TO &lt;A href="Provider=MSDAORA.1; PERSIST INFO=YES; User ID=User1;Data Source=DB1"&gt;&lt;/A&gt; (XPassword is AHfQWEGBT);&lt;/P&gt;&lt;P&gt;// load from some tables from DB1&lt;/P&gt;&lt;P&gt;end if;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ($(vFlagForReload) = 2)then&lt;/P&gt;&lt;P&gt;OLEDB CONNECT32 TO &lt;A href="Provider=MSDAORA.1; User ID=User2;Data Source=DB2"&gt;&lt;/A&gt; (XPassword is AHQWERTYU);&lt;/P&gt;&lt;P&gt;//partial reload from some tables of DB2&lt;/P&gt;&lt;P&gt;end if;&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>Tue, 19 Mar 2013 20:22:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-03-19T20:22:47Z</dc:date>
    <item>
      <title>How to manage connections in load script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-manage-connections-in-load-script/m-p/457479#M1153707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, all&lt;/P&gt;&lt;P&gt;i was trying to use reloads depending on some condition from different databases (below is a part of my code) and met with such problem: connections do not depend on condition, i.e. connections are made always, the script make connections and then load or not load in dependence on condition... i would like my script not to connect to database if i will not to reload from it... How to solve the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ($(vFlagForReload) = 1)then&lt;/P&gt;&lt;P&gt;OLEDB CONNECT32 TO &lt;A href="Provider=MSDAORA.1; PERSIST INFO=YES; User ID=User1;Data Source=DB1"&gt;&lt;/A&gt; (XPassword is AHfQWEGBT);&lt;/P&gt;&lt;P&gt;// load from some tables from DB1&lt;/P&gt;&lt;P&gt;end if;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ($(vFlagForReload) = 2)then&lt;/P&gt;&lt;P&gt;OLEDB CONNECT32 TO &lt;A href="Provider=MSDAORA.1; User ID=User2;Data Source=DB2"&gt;&lt;/A&gt; (XPassword is AHQWERTYU);&lt;/P&gt;&lt;P&gt;//partial reload from some tables of DB2&lt;/P&gt;&lt;P&gt;end if;&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>Tue, 19 Mar 2013 20:22:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-manage-connections-in-load-script/m-p/457479#M1153707</guid>
      <dc:creator />
      <dc:date>2013-03-19T20:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to manage connections in load script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-manage-connections-in-load-script/m-p/457480#M1153708</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This code should work. Only remove the ';' after End if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; What is the error which you are getting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2013 07:10:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-manage-connections-in-load-script/m-p/457480#M1153708</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2013-03-20T07:10:05Z</dc:date>
    </item>
  </channel>
</rss>

