<?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: ODBC Connection without asking for userid/password in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/ODBC-Connection-without-asking-for-userid-password/m-p/1414080#M427360</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An alternate approach could be to include username and password in an external script file, like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;SET vUsername = USERABCD;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;SET vPassword = LETMEINPLEASE;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;put the file in a central place (where you keep your configuration files), and include it before the ODBC CONNECT line by using a construct like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;$(INCLUDE=&lt;EM&gt;C:\QlikView\Scripts\Config\DatabaseCredentials.qvs&lt;/EM&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change the path to whatever applies to your situation.&lt;/P&gt;&lt;P&gt;Don't forget to apply the correct set of (restrictive) permissions to this script file, or sooner or later everyone with access to this file can access your database.&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>Fri, 01 Sep 2017 15:02:46 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2017-09-01T15:02:46Z</dc:date>
    <item>
      <title>ODBC Connection without asking for userid/password</title>
      <link>https://community.qlik.com/t5/QlikView/ODBC-Connection-without-asking-for-userid-password/m-p/1414076#M427356</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;When developing QVW, we uses this line of code to connect to system ODBC: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODBC CONNECT TO [DEVSVER1;DBQ=DEVSERVER1.Mydomainname.com] (XUserId is xxxxxx, XPassword is xxxxxx);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since our password needs to be updated every 90 days, we do not want to hard-code userid/password in qvw script like this. We also don't want to be asked for password each time when we run the qvw. Is there any way to save password along with ODBC connection? Or other solutions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2017 19:47:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ODBC-Connection-without-asking-for-userid-password/m-p/1414076#M427356</guid>
      <dc:creator>Jeffrey_Li</dc:creator>
      <dc:date>2017-08-30T19:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC Connection without asking for userid/password</title>
      <link>https://community.qlik.com/t5/QlikView/ODBC-Connection-without-asking-for-userid-password/m-p/1414077#M427357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be creating a variables for Username and password and store them in an excel. Follow this link might help you. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/97179"&gt;Passing userid and password to ODBC Connection&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2017 20:35:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ODBC-Connection-without-asking-for-userid-password/m-p/1414077#M427357</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-08-30T20:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC Connection without asking for userid/password</title>
      <link>https://community.qlik.com/t5/QlikView/ODBC-Connection-without-asking-for-userid-password/m-p/1414078#M427358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI, Vishwarath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if one dashboard access the Excel file, the file will be locked and other dashboard cannot access it at the same time. Is that correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2017 13:05:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ODBC-Connection-without-asking-for-userid-password/m-p/1414078#M427358</guid>
      <dc:creator>Jeffrey_Li</dc:creator>
      <dc:date>2017-09-01T13:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC Connection without asking for userid/password</title>
      <link>https://community.qlik.com/t5/QlikView/ODBC-Connection-without-asking-for-userid-password/m-p/1414079#M427359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did not get you what you mean by "file will be locked" you mean excel file? No, any dashboards can access the excel file if you load data from excel. Correct me if i did not get you right. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2017 14:52:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ODBC-Connection-without-asking-for-userid-password/m-p/1414079#M427359</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-09-01T14:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC Connection without asking for userid/password</title>
      <link>https://community.qlik.com/t5/QlikView/ODBC-Connection-without-asking-for-userid-password/m-p/1414080#M427360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An alternate approach could be to include username and password in an external script file, like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;SET vUsername = USERABCD;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;SET vPassword = LETMEINPLEASE;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;put the file in a central place (where you keep your configuration files), and include it before the ODBC CONNECT line by using a construct like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;$(INCLUDE=&lt;EM&gt;C:\QlikView\Scripts\Config\DatabaseCredentials.qvs&lt;/EM&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change the path to whatever applies to your situation.&lt;/P&gt;&lt;P&gt;Don't forget to apply the correct set of (restrictive) permissions to this script file, or sooner or later everyone with access to this file can access your database.&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>Fri, 01 Sep 2017 15:02:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ODBC-Connection-without-asking-for-userid-password/m-p/1414080#M427360</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-09-01T15:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC Connection without asking for userid/password</title>
      <link>https://community.qlik.com/t5/QlikView/ODBC-Connection-without-asking-for-userid-password/m-p/1414081#M427361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. I think this should work for us. But when I tried a line like the following (after creating qvs file and including it), it didn't work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODBC Connect TO [servername] (xUserId is vUsername, xPassword is vPassword);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did I use it correctly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Sep 2017 19:24:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ODBC-Connection-without-asking-for-userid-password/m-p/1414081#M427361</guid>
      <dc:creator>Jeffrey_Li</dc:creator>
      <dc:date>2017-09-06T19:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC Connection without asking for userid/password</title>
      <link>https://community.qlik.com/t5/QlikView/ODBC-Connection-without-asking-for-userid-password/m-p/1414082#M427362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ODBC Connect TO [servername] (xUserId is &lt;STRONG&gt;$(vUsername)&lt;/STRONG&gt;, xPassword is &lt;STRONG&gt;$(vPassword)&lt;/STRONG&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Sep 2017 21:04:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ODBC-Connection-without-asking-for-userid-password/m-p/1414082#M427362</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-09-06T21:04:15Z</dc:date>
    </item>
  </channel>
</rss>

