<?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: Dynamic Connection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-Connection/m-p/460286#M484699</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You For Your Reply. some one told me this script,&lt;/P&gt;&lt;P&gt;what you will say about this.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;SET ErrorMode = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;ODBC CONNECT TO DB1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;IF ScriptErrorCount &amp;gt; 0 THEN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;ODBC CONNECT TO DB2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;END IF &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;SQL SELECT * FROM db;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 May 2013 07:41:15 GMT</pubDate>
    <dc:creator>israrkhan</dc:creator>
    <dc:date>2013-05-15T07:41:15Z</dc:date>
    <item>
      <title>Dynamic Connection</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Connection/m-p/460284#M484697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;How can we create a dynamic connection, e.g, we have two servers and both having the DB. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;What i want if one server is down, then Qlikview connect to other server automatically...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;it seems simple. but dont have enough experience to deal with...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Kindly Help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Kind Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 06:35:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Connection/m-p/460284#M484697</guid>
      <dc:creator>israrkhan</dc:creator>
      <dc:date>2013-05-15T06:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Connection</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Connection/m-p/460285#M484698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sort of. Set error mode to 0 (SET ErrorMode = 0;) so the script will continue when an error is encountered. Add two load statements for both databases. The second one should be in an if-then block. In the if condition check the value of the scripterror variable to check for database related errors. For example a scripterror value 9 means the database was not found. You can find the error codes and their meaning in the help file. Alternatively you could just check if the table that should have been created exists and/or if there are any rows in it using the TableNumber and/or NoOfRows functions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 07:26:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Connection/m-p/460285#M484698</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-05-15T07:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Connection</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Connection/m-p/460286#M484699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You For Your Reply. some one told me this script,&lt;/P&gt;&lt;P&gt;what you will say about this.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;SET ErrorMode = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;ODBC CONNECT TO DB1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;IF ScriptErrorCount &amp;gt; 0 THEN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;ODBC CONNECT TO DB2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;END IF &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;SQL SELECT * FROM db;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 07:41:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Connection/m-p/460286#M484699</guid>
      <dc:creator>israrkhan</dc:creator>
      <dc:date>2013-05-15T07:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Connection</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Connection/m-p/460287#M484700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="Code"&gt;Hi Usman,&lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code"&gt;Yes, it exactly works, if one server is not reachable then the ScriptErrorCount would be &amp;gt; 0, so in the If condition the ODBC is connected.&lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code"&gt;SETErrorMode=0;&lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code"&gt;&lt;SPAN style="color: #1f497d;"&gt;ODBC CONNECT TO DB1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code"&gt;If ScriptErrorCount &amp;gt; 0 Then&lt;/P&gt;&lt;P class="Code"&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ODBC CONNECT TO DB2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Code"&gt;End If&lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code"&gt;&lt;SPAN style="color: #1f497d;"&gt;SQL SELECT * FROM db;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code"&gt;&lt;SPAN style="color: #1f497d;"&gt;Hope this helps you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code"&gt;&lt;SPAN style="color: #1f497d;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Code"&gt;&lt;SPAN style="color: #1f497d;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 08:23:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Connection/m-p/460287#M484700</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-05-15T08:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Connection</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Connection/m-p/460288#M484701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You Mohan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me try..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i 'll update you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 08:56:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Connection/m-p/460288#M484701</guid>
      <dc:creator>israrkhan</dc:creator>
      <dc:date>2013-05-15T08:56:40Z</dc:date>
    </item>
  </channel>
</rss>

