<?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: Passing userid and password to ODBC Connection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Passing-userid-and-password-to-ODBC-Connection/m-p/529559#M1134116</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this (I'm using non-scrambled):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Assuming it is Excel file with columns USERID and PASSWORD:&lt;BR /&gt;LoginData:&lt;BR /&gt;LOAD &lt;BR /&gt; USERID, &lt;BR /&gt;&amp;nbsp; PASSWORD&lt;BR /&gt;FROM Data.xlsx (ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Define variables:&lt;BR /&gt;LET vUser = peek('USERID');&lt;BR /&gt;LET vPassword = peek('PASSWORD');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Don't need this table anymore:&lt;BR /&gt;DROP TABLE LoginData;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Use variables in CONNECT&lt;BR /&gt;ODBC CONNECT TO [EDW] (UserId is $(vUser), Password is $(vPassword));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// DELETE these variables so they are not available in app front end:&lt;BR /&gt;LET vUser = null();&lt;BR /&gt;LET vPassword = null();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 26 Oct 2013 17:09:07 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-10-26T17:09:07Z</dc:date>
    <item>
      <title>Passing userid and password to ODBC Connection</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-userid-and-password-to-ODBC-Connection/m-p/529554#M1134111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In our company we are forced to change passwords every 90 days. So in my .qvw that generates my qvd's I don't want to have to go change my username and password for the ODBC connection for every single one every 90 days. Is there a way I can update one text file and then have all of my qvw's reference that one file for the username and password?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ODBC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;CONNECT32&lt;/STRONG&gt;&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;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[EDW&lt;/SPAN&gt;]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;XUserId&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt; right here is where I want it to point to an excel/text file&lt;/SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;XPassword&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; right here is where I want it to point to an excel/text file); &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 19:10:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-userid-and-password-to-ODBC-Connection/m-p/529554#M1134111</guid>
      <dc:creator />
      <dc:date>2013-10-25T19:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Passing userid and password to ODBC Connection</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-userid-and-password-to-ODBC-Connection/m-p/529555#M1134112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you cannot point to a file inside the CONNECT statement but you could use variables which could be initialized from a file..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 20:04:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-userid-and-password-to-ODBC-Connection/m-p/529555#M1134112</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2013-10-25T20:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Passing userid and password to ODBC Connection</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-userid-and-password-to-ODBC-Connection/m-p/529556#M1134113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, variables is a way to go.&amp;nbsp; I guess you cannot use scrambled in this case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 20:16:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-userid-and-password-to-ODBC-Connection/m-p/529556#M1134113</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-25T20:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Passing userid and password to ODBC Connection</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-userid-and-password-to-ODBC-Connection/m-p/529557#M1134114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not without creating new CONNECT statement manuelly with new credentials and then store XUserId/XPassword into a file. But as I remember right there was a dll you could use to scramble with an external program..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 20:21:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-userid-and-password-to-ODBC-Connection/m-p/529557#M1134114</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2013-10-25T20:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Passing userid and password to ODBC Connection</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-userid-and-password-to-ODBC-Connection/m-p/529558#M1134115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Variables would be fine, but where would I assign what the variables are? It would have to be somewhere else so it can be one central location for all of my programs.&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;If it's not too much could you give an example snippet of code on how to do that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 21:01:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-userid-and-password-to-ODBC-Connection/m-p/529558#M1134115</guid>
      <dc:creator />
      <dc:date>2013-10-25T21:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Passing userid and password to ODBC Connection</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-userid-and-password-to-ODBC-Connection/m-p/529559#M1134116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this (I'm using non-scrambled):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Assuming it is Excel file with columns USERID and PASSWORD:&lt;BR /&gt;LoginData:&lt;BR /&gt;LOAD &lt;BR /&gt; USERID, &lt;BR /&gt;&amp;nbsp; PASSWORD&lt;BR /&gt;FROM Data.xlsx (ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Define variables:&lt;BR /&gt;LET vUser = peek('USERID');&lt;BR /&gt;LET vPassword = peek('PASSWORD');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Don't need this table anymore:&lt;BR /&gt;DROP TABLE LoginData;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Use variables in CONNECT&lt;BR /&gt;ODBC CONNECT TO [EDW] (UserId is $(vUser), Password is $(vPassword));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// DELETE these variables so they are not available in app front end:&lt;BR /&gt;LET vUser = null();&lt;BR /&gt;LET vPassword = null();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Oct 2013 17:09:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-userid-and-password-to-ODBC-Connection/m-p/529559#M1134116</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-26T17:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Passing userid and password to ODBC Connection</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-userid-and-password-to-ODBC-Connection/m-p/529560#M1134117</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;This solution does not work in case of MySQL if I am also fetching DSN Name from excel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 09:54:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-userid-and-password-to-ODBC-Connection/m-p/529560#M1134117</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-20T09:54:08Z</dc:date>
    </item>
  </channel>
</rss>

