<?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: Switching SQL Connection String with external file in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Switching-SQL-Connection-String-with-external-file/m-p/1158420#M377706</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;&lt;SPAN lang="EN-US" style="font-weight: normal; font-style: inherit; font-size: 10pt; font-family: Calibri, sans-serif;"&gt;if&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Calibri, sans-serif; color: red;"&gt;(&lt;/SPAN&gt;&lt;EM style="font-size: 9pt; font-family: 'Courier New'; color: gray;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Calibri, sans-serif;"&gt;$(vSQL_INSTANCE)&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Calibri, sans-serif;"&gt;='TEST'&lt;BR /&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;EM style="font-size: 9pt; font-family: 'Courier New'; color: gray;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Calibri, sans-serif;"&gt;$(Include=$(path_toggel)CONNECTION_SQL_TEST.qvs)&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Calibri, sans-serif;"&gt;&lt;BR /&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;EM style="font-size: 9pt; font-family: 'Courier New'; color: gray;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Calibri, sans-serif;"&gt;$(Include=$(path_toggel)CONNECTION_SQL_PROD.qvs)&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Calibri, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG style="font-size: 9pt; font-family: 'Courier New'; color: red;"&gt;&lt;SPAN lang="EN-US" style="font-weight: normal; font-style: inherit; font-size: 10pt; font-family: Calibri, sans-serif;"&gt;);&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Aug 2016 17:00:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-08-09T17:00:10Z</dc:date>
    <item>
      <title>Switching SQL Connection String with external file</title>
      <link>https://community.qlik.com/t5/QlikView/Switching-SQL-Connection-String-with-external-file/m-p/1158419#M377705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Calibri, sans-serif;"&gt;Hi all,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Calibri, sans-serif;"&gt;I try to setup my QlikView script to switch between two OLEDB Connection Strings via a external file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Calibri, sans-serif;"&gt;Storing my Connection Strings in two different qvs files (&lt;/SPAN&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Calibri',sans-serif; color: gray;"&gt;CONNECTION_SQL_TEST.qvs and &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: gray;"&gt;CONNECTION_SQL_PROD.qvs&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Calibri, sans-serif;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Calibri, sans-serif;"&gt;Loading the file text file that contains the Instance Name (TEST or PROD) and write a variable called &lt;/SPAN&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Calibri',sans-serif; color: gray;"&gt;vSQL_INSTANCE.&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN class="apple-converted-space"&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;In this variable it will be simply stored 'TEST' or 'PROD'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Calibri, sans-serif;"&gt;Tried to create a condition like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Calibri',sans-serif; color: blue; font-weight: normal;"&gt;if&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Calibri',sans-serif; color: red;"&gt;(&lt;/SPAN&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Calibri',sans-serif; color: gray;"&gt;$(vSQL_INSTANCE)&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;='TEST'&lt;BR /&gt; ,&lt;BR /&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Calibri',sans-serif; color: gray;"&gt;$(Include=$(path_toggel)CONNECTION_SQL_TEST.qvs)&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;;&lt;BR /&gt; ,&lt;BR /&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Calibri',sans-serif; color: gray;"&gt;$(Include=$(path_toggel)CONNECTION_SQL_PROD.qvs)&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG style="color: red; font-size: 9.0pt; font-family: 'Courier New';"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Calibri',sans-serif; color: red; font-weight: normal;"&gt;) &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Calibri',sans-serif; color: red;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: red; font-size: 9.0pt; font-family: 'Courier New';"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Calibri',sans-serif; color: red; font-weight: normal;"&gt;Result -&amp;gt; Syntax Error.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Calibri',sans-serif; color: red;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: red; font-size: 9.0pt; font-family: 'Courier New';"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Calibri',sans-serif; color: black; font-weight: normal;"&gt;Could anymody help me with that?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 9pt; font-family: 'Courier New';"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Calibri',sans-serif; color: black; font-weight: normal;"&gt;Is it actualy possible to use a if condition in combination with Connection Strings?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 9pt; font-family: 'Courier New';"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Calibri',sans-serif; color: black; font-weight: normal;"&gt;Thank you for your efforts.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 9pt; font-family: 'Courier New';"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Calibri',sans-serif; color: black; font-weight: normal;"&gt;Kind Regrads&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: red; font-size: 9.0pt; font-family: 'Courier New';"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Calibri',sans-serif; color: black; font-weight: normal;"&gt;Philipp&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 16:45:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Switching-SQL-Connection-String-with-external-file/m-p/1158419#M377705</guid>
      <dc:creator />
      <dc:date>2016-08-09T16:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Switching SQL Connection String with external file</title>
      <link>https://community.qlik.com/t5/QlikView/Switching-SQL-Connection-String-with-external-file/m-p/1158420#M377706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;&lt;SPAN lang="EN-US" style="font-weight: normal; font-style: inherit; font-size: 10pt; font-family: Calibri, sans-serif;"&gt;if&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Calibri, sans-serif; color: red;"&gt;(&lt;/SPAN&gt;&lt;EM style="font-size: 9pt; font-family: 'Courier New'; color: gray;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Calibri, sans-serif;"&gt;$(vSQL_INSTANCE)&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Calibri, sans-serif;"&gt;='TEST'&lt;BR /&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;EM style="font-size: 9pt; font-family: 'Courier New'; color: gray;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Calibri, sans-serif;"&gt;$(Include=$(path_toggel)CONNECTION_SQL_TEST.qvs)&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Calibri, sans-serif;"&gt;&lt;BR /&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;EM style="font-size: 9pt; font-family: 'Courier New'; color: gray;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Calibri, sans-serif;"&gt;$(Include=$(path_toggel)CONNECTION_SQL_PROD.qvs)&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN lang="EN-US" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Calibri, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG style="font-size: 9pt; font-family: 'Courier New'; color: red;"&gt;&lt;SPAN lang="EN-US" style="font-weight: normal; font-style: inherit; font-size: 10pt; font-family: Calibri, sans-serif;"&gt;);&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 17:00:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Switching-SQL-Connection-String-with-external-file/m-p/1158420#M377706</guid>
      <dc:creator />
      <dc:date>2016-08-09T17:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Switching SQL Connection String with external file</title>
      <link>https://community.qlik.com/t5/QlikView/Switching-SQL-Connection-String-with-external-file/m-p/1158421#M377707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rodrigo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for answering, but this is also not working "Script Error - Unknown statement" ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the Syntax is still wrong, or maybe it is not possible to combine if withOLEDB CONNECT TO ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Philipp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 05:55:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Switching-SQL-Connection-String-with-external-file/m-p/1158421#M377707</guid>
      <dc:creator />
      <dc:date>2016-08-10T05:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Switching SQL Connection String with external file</title>
      <link>https://community.qlik.com/t5/QlikView/Switching-SQL-Connection-String-with-external-file/m-p/1158422#M377708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dont try to do it in an expression. Use this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If vSQL_INSTANCE = 'TEST' Then&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; $(Include=$(path_toggel)CONNECTION_SQL_TEST.qvs);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Else&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; $(Include=$(path_toggel)CONNECTION_SQL_PROD.qvs);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;End If&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 06:09:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Switching-SQL-Connection-String-with-external-file/m-p/1158422#M377708</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-08-10T06:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Switching SQL Connection String with external file</title>
      <link>https://community.qlik.com/t5/QlikView/Switching-SQL-Connection-String-with-external-file/m-p/1158423#M377709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or you could try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;$(Include=$(path_toggel)CONNECTION_SQL_$(vSQL_INSTANCE).qvs);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;(BTW -&amp;nbsp; I would use $(must_include=...) for a connection string so that the script fails at the right place if the include file cannot be found)&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 06:10:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Switching-SQL-Connection-String-with-external-file/m-p/1158423#M377709</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-08-10T06:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: Switching SQL Connection String with external file</title>
      <link>https://community.qlik.com/t5/QlikView/Switching-SQL-Connection-String-with-external-file/m-p/1158424#M377710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;P&gt;This solved my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Philipp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 06:23:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Switching-SQL-Connection-String-with-external-file/m-p/1158424#M377710</guid>
      <dc:creator />
      <dc:date>2016-08-10T06:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Switching SQL Connection String with external file</title>
      <link>https://community.qlik.com/t5/QlikView/Switching-SQL-Connection-String-with-external-file/m-p/1158425#M377711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good idea!! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That was not my intention, but works anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 06:43:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Switching-SQL-Connection-String-with-external-file/m-p/1158425#M377711</guid>
      <dc:creator />
      <dc:date>2016-08-10T06:43:29Z</dc:date>
    </item>
  </channel>
</rss>

