<?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 create connection string fiels(.cfg)? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-create-connection-string-fiels-cfg/m-p/806464#M1044119</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how to create connection string fiels(.cfg)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Nov 2014 11:11:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-11-24T11:11:51Z</dc:date>
    <item>
      <title>how to create connection string fiels(.cfg)?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-connection-string-fiels-cfg/m-p/806464#M1044119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how to create connection string fiels(.cfg)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 11:11:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-connection-string-fiels-cfg/m-p/806464#M1044119</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-24T11:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to create connection string fiels(.cfg)?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-connection-string-fiels-cfg/m-p/806465#M1044120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're a bit sparse on details, but let's assume that you want to keep your connection string external to your model. One way to do this is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put your entire CONNECT statement in a simple text file, for example "&lt;SPAN style="font-family: 'courier new', courier;"&gt;fiels.cfg&lt;/SPAN&gt;" from your thread title. Create this file in Notepad, and enter the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ODBC CONNECT TO [&lt;EM&gt;connectionstring&lt;/EM&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;OLEDB CONNECT TO [&lt;EM&gt;connectionstring&lt;/EM&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace&lt;EM&gt; &lt;SPAN style="font-family: 'courier new', courier;"&gt;connectionstring&lt;/SPAN&gt;&lt;/EM&gt; with the actual Connection String you configured using the Connect-wizard. Place the file "&lt;SPAN style="font-family: 'courier new', courier;"&gt;fiels.cfg&lt;/SPAN&gt;" in the same directory as your QlikView document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in your QlikView document, open the script editor and enter the following before any SQL statements you may have listed:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;$(INCLUDE=.\fiels.cfg);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will tell the QlikView engine to replace the INCLUDE statement with the text found in the specified file. You now have a method to change/adjust connection strings on the fly (e.g. for development or production databases) without touching your QlikView document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 15:07:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-connection-string-fiels-cfg/m-p/806465#M1044120</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2014-11-24T15:07:04Z</dc:date>
    </item>
  </channel>
</rss>

