<?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 Using a Config file for ODBC Connect statment values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-a-Config-file-for-ODBC-Connect-statment-values/m-p/323559#M1196178</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd like to read in a standard text configs.csv config file to load values for the ODBC Connect Statement.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;config.csv:&lt;/P&gt;&lt;P&gt;conf_value, conf_field&lt;BR /&gt;odbc_name,test&lt;BR /&gt;user_id,user&lt;BR /&gt;password,password&lt;/P&gt;&lt;P&gt;script:&lt;/P&gt;&lt;P&gt;ODBC CONNECT TO confvalue1 (UserId isconfvalue2, Password is confvalue3);&lt;/P&gt;&lt;P&gt;Is this possible? When I try adding variables to the ODBC CONNECT statement I am getting syntax errors.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Apr 2011 22:52:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-04-25T22:52:01Z</dc:date>
    <item>
      <title>Using a Config file for ODBC Connect statment values</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-Config-file-for-ODBC-Connect-statment-values/m-p/323559#M1196178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd like to read in a standard text configs.csv config file to load values for the ODBC Connect Statement.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;config.csv:&lt;/P&gt;&lt;P&gt;conf_value, conf_field&lt;BR /&gt;odbc_name,test&lt;BR /&gt;user_id,user&lt;BR /&gt;password,password&lt;/P&gt;&lt;P&gt;script:&lt;/P&gt;&lt;P&gt;ODBC CONNECT TO confvalue1 (UserId isconfvalue2, Password is confvalue3);&lt;/P&gt;&lt;P&gt;Is this possible? When I try adding variables to the ODBC CONNECT statement I am getting syntax errors.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2011 22:52:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-Config-file-for-ODBC-Connect-statment-values/m-p/323559#M1196178</guid>
      <dc:creator />
      <dc:date>2011-04-25T22:52:01Z</dc:date>
    </item>
    <item>
      <title>Using a Config file for ODBC Connect statment values</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-Config-file-for-ODBC-Connect-statment-values/m-p/323560#M1196179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi PMCanada, yes it is possible!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is a sample:&lt;/P&gt;&lt;P&gt;_______________________________________________________________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tmp:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; conf_field, conf_value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ODBCName, YourODBCName&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UserID, YourUserID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Password, YourPassword&lt;/P&gt;&lt;P&gt;];&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //replace this inline load with your load from the csv file &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vODBCName = lookup('conf_value', 'conf_field', 'ODBCName', 'tmp');&lt;/P&gt;&lt;P&gt;let vUserID = lookup('conf_value', 'conf_field', 'UserID', 'tmp');&lt;/P&gt;&lt;P&gt;let vPassword = lookup('conf_value', 'conf_field', 'Password', 'tmp');&lt;/P&gt;&lt;P&gt;drop table tmp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;ODBC CONNECT TO $(vODBCName) (UserId is $(vUserID), Password is $(vPassword));&lt;/P&gt;&lt;P&gt;_______________________________________________________________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Fernando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 23:29:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-Config-file-for-ODBC-Connect-statment-values/m-p/323560#M1196179</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2011-05-06T23:29:37Z</dc:date>
    </item>
  </channel>
</rss>

