<?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: Failover/secondary DB connection string in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Failover-secondary-DB-connection-string/m-p/1160976#M378496</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lokesh, I didn't tried but maybe using the script error variables, ie:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET ErrorMode = 0; //If any error is found, continue execution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONNECT To&amp;nbsp; &lt;EM&gt;MainConnection&lt;/EM&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF ScriptError &amp;gt;0 then //If there was an error connecting try this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;SET ErrorMode = 1; // If this one fails an error must be thrown&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CONNECT TO &lt;EM&gt;FailoverConnection;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;ENDIF&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SET ErrorMode = 1; // In case there was no error, set ErrorMode to 1 for the rest of the script.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jun 2016 13:03:13 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2016-06-09T13:03:13Z</dc:date>
    <item>
      <title>Failover/secondary DB connection string</title>
      <link>https://community.qlik.com/t5/QlikView/Failover-secondary-DB-connection-string/m-p/1160973#M378493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a QVW application that generates QVD files from primary SQL database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also have a mirror database copy of that primary server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What function should I use or what statement to use in the connection string so in case of primary server is down then it will automatically connect to the mirror database?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 12:34:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Failover-secondary-DB-connection-string/m-p/1160973#M378493</guid>
      <dc:creator />
      <dc:date>2016-06-09T12:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Failover/secondary DB connection string</title>
      <link>https://community.qlik.com/t5/QlikView/Failover-secondary-DB-connection-string/m-p/1160974#M378494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something similar discussed over here by &lt;A href="https://community.qlik.com/qlik-users/3540"&gt;pcammaert&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlikview.com/thread/215609" title="https://community.qlikview.com/thread/215609"&gt;Failover Partner issue or other kind of error? | Qlik Community&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 12:51:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Failover-secondary-DB-connection-string/m-p/1160974#M378494</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2016-06-09T12:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Failover/secondary DB connection string</title>
      <link>https://community.qlik.com/t5/QlikView/Failover-secondary-DB-connection-string/m-p/1160975#M378495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try something like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DB Connection1; //Primary Database connection&lt;/P&gt;&lt;P&gt;IF &lt;SPAN class="Bold"&gt;ScriptError=3 or &lt;SPAN style="font-size: 13.3333px;"&gt;ScriptError=4 then&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DB Connection 2; // mirror database connection&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;END IF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Load Stmt1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Load Stmt2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 13:02:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Failover-secondary-DB-connection-string/m-p/1160975#M378495</guid>
      <dc:creator>PradeepReddy</dc:creator>
      <dc:date>2016-06-09T13:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Failover/secondary DB connection string</title>
      <link>https://community.qlik.com/t5/QlikView/Failover-secondary-DB-connection-string/m-p/1160976#M378496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lokesh, I didn't tried but maybe using the script error variables, ie:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET ErrorMode = 0; //If any error is found, continue execution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONNECT To&amp;nbsp; &lt;EM&gt;MainConnection&lt;/EM&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF ScriptError &amp;gt;0 then //If there was an error connecting try this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;SET ErrorMode = 1; // If this one fails an error must be thrown&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CONNECT TO &lt;EM&gt;FailoverConnection;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;ENDIF&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SET ErrorMode = 1; // In case there was no error, set ErrorMode to 1 for the rest of the script.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 13:03:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Failover-secondary-DB-connection-string/m-p/1160976#M378496</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-06-09T13:03:13Z</dc:date>
    </item>
  </channel>
</rss>

