<?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: Multiple Connection Strings in one QVS file in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-Connection-Strings-in-one-QVS-file/m-p/1155359#M906255</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;Yes you can&lt;/P&gt;&lt;P&gt;in your qvs, your define these connexions&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;v_DB_SALESFORCE&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;= 'CUSTOM CONNECT TO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ';&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;v_DB_Oracle ='&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Then in your application Qvw&lt;/P&gt;&lt;P&gt;//you can call your conexion like this&lt;/P&gt;&lt;P&gt;$(&lt;SPAN style="font-size: 13.3333px;"&gt;v_DB_SALESFORCE&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//At the end of your connexion&lt;/P&gt;&lt;P&gt;DISCONNECT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//then you can an other connexion&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;$(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;v_DB_Oracle)&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;DISCONNECT;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jun 2016 15:02:45 GMT</pubDate>
    <dc:creator>syukyo_zhu</dc:creator>
    <dc:date>2016-06-20T15:02:45Z</dc:date>
    <item>
      <title>Multiple Connection Strings in one QVS file</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Connection-Strings-in-one-QVS-file/m-p/1155354#M906250</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;I have multiple connection strings that are being used. Can I create QVS file with all the connection strings in that one single file? If yes, how?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Connection-Strings-in-one-QVS-file/m-p/1155354#M906250</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Connection Strings in one QVS file</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Connection-Strings-in-one-QVS-file/m-p/1155355#M906251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use as many Connection strings as you like&lt;/P&gt;&lt;P&gt;But: you must extract the data from each database you want to connect to before the next Connection string&lt;/P&gt;&lt;P&gt;occurs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;connect to ...&lt;/P&gt;&lt;P&gt;select * from tablea&lt;/P&gt;&lt;P&gt;select * from tableb&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;connect to ...&lt;/P&gt;&lt;P&gt;select *from tablec&lt;/P&gt;&lt;P&gt;select * from tabled&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;other possibility: if you want only 1 qvs with only Connection strings you may work with variables and use a Sub&lt;/P&gt;&lt;P&gt;Sub connect (DBA)&lt;/P&gt;&lt;P&gt;if (DBA=1, connect to ..)&lt;/P&gt;&lt;P&gt;if (DBA)2, connect to ...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in your main script you call the Sub and then extract the data&lt;/P&gt;&lt;P&gt;call connect(1)&lt;/P&gt;&lt;P&gt;select * from tablea&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does this helps you?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 14:43:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Connection-Strings-in-one-QVS-file/m-p/1155355#M906251</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-20T14:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Connection Strings in one QVS file</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Connection-Strings-in-one-QVS-file/m-p/1155356#M906252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If i have only one connection String, I can do it as :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SCRIPT:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(Must_Include=$(Config)\ConnectionString.qvs) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableA:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in the ConnectionString.qvs file, define the Connection String.&lt;/P&gt;&lt;P&gt;How will I do it if I have multiple connection strings and I want all those connection strings to be stored in a single .qvs file instead of one qvs file for each connection string?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 14:53:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Connection-Strings-in-one-QVS-file/m-p/1155356#M906252</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-20T14:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Connection Strings in one QVS file</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Connection-Strings-in-one-QVS-file/m-p/1155357#M906253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you can have as many connection strings as you like, i use something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In your QVS:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;//First conn&lt;/P&gt;&lt;P&gt;set v.DBConnString1='Provider=OraOLEDB.Oracle.1;Persist Security Info=True;User ID=myUser;Data Source=mySource1;UseSessionFormat = 1;Extended Properties=""';&lt;/P&gt;&lt;P&gt;set v.DBConnString1Pass='RVEePSJMDSDFSDFDdeFRFNJE';&lt;/P&gt;&lt;P&gt;//second conn&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;set v.DBConnString2='Provider=OraOLEDB.Oracle.1;Persist Security Info=True;User ID=myUser;Data Source=mySource2;UseSessionFormat = 1;Extended Properties=""';&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;set v.DBConnString2Pass='RVEePRTSDFGSDF3453NJE';&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;And in your app:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;//Connect to first db&lt;/P&gt;&lt;P&gt;OLEDB CONNECT TO [$(v.&lt;SPAN style="font-size: 13.3333330154419px;"&gt;DBConnString1&lt;/SPAN&gt;)] (XPassword is $(v.&lt;SPAN style="font-size: 13.3333330154419px;"&gt;DBConnString1Pass&lt;/SPAN&gt;)); &lt;/P&gt;&lt;P&gt;//Do some stuff&lt;/P&gt;&lt;P&gt;DISCONNECT;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;//Connect to second db&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;OLEDB CONNECT TO [$(v.&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;DBConnString2&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;)] (XPassword is $(v.&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;DBConnString2Pass&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;)); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;//Do some stuff;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;DISCONNECT;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this helps.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 15:00:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Connection-Strings-in-one-QVS-file/m-p/1155357#M906253</guid>
      <dc:creator>santiago_respane</dc:creator>
      <dc:date>2016-06-20T15:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Connection Strings in one QVS file</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Connection-Strings-in-one-QVS-file/m-p/1155358#M906254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would use my second choice:&lt;/P&gt;&lt;P&gt;you define your Connection strings in a single qvs by defining a Sub&lt;/P&gt;&lt;P&gt;Sub connect(DBA)&lt;/P&gt;&lt;P&gt;if (DBA=1, connect to Database1)&lt;/P&gt;&lt;P&gt;if (DBA=2, connect to Database2&lt;/P&gt;&lt;P&gt;end Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you call the include like you wrote&lt;/P&gt;&lt;P&gt;$(Must_Include=$(Config)\ConnectionString.qvs) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But before extracting data you define the datasource using a parameter&lt;/P&gt;&lt;P&gt;CALL CONNECT(1)&lt;/P&gt;&lt;P&gt;TableA:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does this clarifys your question?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 15:01:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Connection-Strings-in-one-QVS-file/m-p/1155358#M906254</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-20T15:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Connection Strings in one QVS file</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Connection-Strings-in-one-QVS-file/m-p/1155359#M906255</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;Yes you can&lt;/P&gt;&lt;P&gt;in your qvs, your define these connexions&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;v_DB_SALESFORCE&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;= 'CUSTOM CONNECT TO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ';&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;v_DB_Oracle ='&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Then in your application Qvw&lt;/P&gt;&lt;P&gt;//you can call your conexion like this&lt;/P&gt;&lt;P&gt;$(&lt;SPAN style="font-size: 13.3333px;"&gt;v_DB_SALESFORCE&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//At the end of your connexion&lt;/P&gt;&lt;P&gt;DISCONNECT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//then you can an other connexion&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;$(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;v_DB_Oracle)&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;DISCONNECT;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 15:02:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Connection-Strings-in-one-QVS-file/m-p/1155359#M906255</guid>
      <dc:creator>syukyo_zhu</dc:creator>
      <dc:date>2016-06-20T15:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Connection Strings in one QVS file</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Connection-Strings-in-one-QVS-file/m-p/1155360#M906256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will try one and if it doesn't work, will switch to the next one. Will let you know guys. Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 15:31:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Connection-Strings-in-one-QVS-file/m-p/1155360#M906256</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-20T15:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Connection Strings in one QVS file</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Connection-Strings-in-one-QVS-file/m-p/1155361#M906257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The one provided by xia worked. I had issues with Santiago's solution. Anyway, thanks guys&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 16:13:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Connection-Strings-in-one-QVS-file/m-p/1155361#M906257</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-20T16:13:45Z</dc:date>
    </item>
  </channel>
</rss>

