<?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: Load ODBC-Connection-Path from a database in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-ODBC-Connection-Path-from-a-database/m-p/562135#M692559</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi manfred&lt;/P&gt;&lt;P&gt;I dont know if it has a solution. I tried it but I didnt found a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just know that you can do For each loop. But then you'll have alot of work with 100 Directories. It would look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each vDirectory in '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;O:\Directory1\Subdirectory\&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt; font-style: inherit; text-decoration: underline; font-family: inherit;"&gt;&lt;STRONG&gt;ABC&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;\LOG.mdb&lt;/SPAN&gt;', '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;O:\Directory1\Subdirectory\&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt; font-style: inherit; text-decoration: underline; font-family: inherit;"&gt;&lt;STRONG&gt;DEF&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;\LOG.mdb&lt;/SPAN&gt;', '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;O:\Directory1\Subdirectory\&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt; font-style: inherit; text-decoration: underline; font-family: inherit;"&gt;&lt;STRONG&gt;GHI&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;\LOG.mdb&lt;/SPAN&gt;'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load ....&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[$(vDirectory)]&lt;/P&gt;&lt;P&gt;(biff, .....)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Aug 2013 12:33:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-08-20T12:33:13Z</dc:date>
    <item>
      <title>Load ODBC-Connection-Path from a database</title>
      <link>https://community.qlik.com/t5/QlikView/Load-ODBC-Connection-Path-from-a-database/m-p/562134#M692558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello!&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Perhaps someone have a solution for the following problem:&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Today i am loading data from many (+- 100) mdb-tables. In the parts of the script only&lt;/DIV&gt;&lt;DIV&gt;the path of the odbc connection is changing.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Example:&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;ODBC &lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;CONNECT32&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TO&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[VCS Universal;DBQ=O:\Directory1\Subdirectory\&lt;SPAN style="color: #800000; font-size: 10pt; text-decoration: underline;"&gt;&lt;STRONG&gt;ABC&lt;/STRONG&gt;&lt;/SPAN&gt;\LOG.mdb]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;LOAD ...;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;ODBC &lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;CONNECT32&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TO&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[VCS Universal;DBQ=O:\Directory1\Subdirectory\&lt;SPAN style="color: #800000; font-size: 10pt; text-decoration: underline;"&gt;&lt;STRONG&gt;DEF&lt;/STRONG&gt;&lt;/SPAN&gt;\LOG.mdb]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;DIV&gt;LOAD ...;&lt;BR /&gt; &lt;P&gt;ODBC &lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;CONNECT32&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TO&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[VCS Universal;DBQ=O:\Directory1\Subdirectory\&lt;SPAN style="color: #800000; font-size: 10pt; text-decoration: underline;"&gt;&lt;STRONG&gt;GHI&lt;/STRONG&gt;&lt;/SPAN&gt;\LOG.mdb]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;DIV&gt;LOAD ...;&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;BR /&gt;...&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;P&gt;The path is also stored in a database. Would it be possible to load this scripts in a loop&lt;/P&gt;&lt;P&gt;and for every entry in the database of the directory?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example Path-Directory:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID, Path&lt;/P&gt;&lt;P&gt;1, O:\Directory1\Subdirectory\&lt;SPAN style="color: #800000; font-size: 10pt; text-decoration: underline;"&gt;&lt;STRONG&gt;ABC&lt;/STRONG&gt;&lt;/SPAN&gt;\LOG.mdb&lt;/P&gt;&lt;P&gt;2, O:\Directory1\Subdirectory\&lt;SPAN style="color: #800000; font-size: 10pt; text-decoration: underline;"&gt;&lt;STRONG&gt;DEF&lt;/STRONG&gt;&lt;/SPAN&gt;\LOG.mdb&lt;/P&gt;&lt;P&gt;3, O:\Directory1\Subdirectory\&lt;SPAN style="color: #800000; font-size: 10pt; text-decoration: underline;"&gt;&lt;STRONG&gt;GHI&lt;/STRONG&gt;&lt;/SPAN&gt;\LOG.mdb&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 12:25:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-ODBC-Connection-Path-from-a-database/m-p/562134#M692558</guid>
      <dc:creator />
      <dc:date>2013-08-06T12:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Load ODBC-Connection-Path from a database</title>
      <link>https://community.qlik.com/t5/QlikView/Load-ODBC-Connection-Path-from-a-database/m-p/562135#M692559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi manfred&lt;/P&gt;&lt;P&gt;I dont know if it has a solution. I tried it but I didnt found a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just know that you can do For each loop. But then you'll have alot of work with 100 Directories. It would look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each vDirectory in '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;O:\Directory1\Subdirectory\&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt; font-style: inherit; text-decoration: underline; font-family: inherit;"&gt;&lt;STRONG&gt;ABC&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;\LOG.mdb&lt;/SPAN&gt;', '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;O:\Directory1\Subdirectory\&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt; font-style: inherit; text-decoration: underline; font-family: inherit;"&gt;&lt;STRONG&gt;DEF&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;\LOG.mdb&lt;/SPAN&gt;', '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;O:\Directory1\Subdirectory\&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt; font-style: inherit; text-decoration: underline; font-family: inherit;"&gt;&lt;STRONG&gt;GHI&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;\LOG.mdb&lt;/SPAN&gt;'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load ....&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[$(vDirectory)]&lt;/P&gt;&lt;P&gt;(biff, .....)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 12:33:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-ODBC-Connection-Path-from-a-database/m-p/562135#M692559</guid>
      <dc:creator />
      <dc:date>2013-08-20T12:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Load ODBC-Connection-Path from a database</title>
      <link>https://community.qlik.com/t5/QlikView/Load-ODBC-Connection-Path-from-a-database/m-p/562136#M692560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manfred,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe this helps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13770067352532883" jivemacro_uid="_13770067352532883" modifiedtitle="true"&gt;
&lt;P&gt;// replace with file or database source:&lt;/P&gt;
&lt;P&gt;Databases:&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID, Path&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, O:\Directory1\Subdirectory\ABC\LOG.mdb&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, O:\Directory1\Subdirectory\DEF\LOG.mdb&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, O:\Directory1\Subdirectory\GHI\LOG.mdb&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LET vNoRows = NoOfRows('Databases') -1;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;for i=0 to $(vNoRows)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; let vDatabasePath = peek('Path',$(i),'Databases');&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ODBC CONNECT32 TO [VCS Universal;DBQ=$(vDatabasePath)]; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD..;&lt;/P&gt;
&lt;P&gt;next&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 13:52:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-ODBC-Connection-Path-from-a-database/m-p/562136#M692560</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2013-08-20T13:52:56Z</dc:date>
    </item>
  </channel>
</rss>

