<?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 Dynamic Connection String in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-Connection-String/m-p/1283559#M402205</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have received a requirement from my client where due to security reason he wants to create dynamic connection string instead of using the direct user id and password. I am aware of the fact that we can use $(include=file location) to use a file for connection string. However, the requirement is such that a table/excel to be created where the password will be stored and maintained by the client alone. I have to store the password in a variable and use that variable in the connection string. I can't use $(include) statement. How could I achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Nov 2016 12:02:28 GMT</pubDate>
    <dc:creator>sohb2015</dc:creator>
    <dc:date>2016-11-21T12:02:28Z</dc:date>
    <item>
      <title>Dynamic Connection String</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Connection-String/m-p/1283559#M402205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have received a requirement from my client where due to security reason he wants to create dynamic connection string instead of using the direct user id and password. I am aware of the fact that we can use $(include=file location) to use a file for connection string. However, the requirement is such that a table/excel to be created where the password will be stored and maintained by the client alone. I have to store the password in a variable and use that variable in the connection string. I can't use $(include) statement. How could I achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 12:02:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Connection-String/m-p/1283559#M402205</guid>
      <dc:creator>sohb2015</dc:creator>
      <dc:date>2016-11-21T12:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Connection String</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Connection-String/m-p/1283560#M402206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are storing the password in any way, are you securing the document as well so that only that user can run it? If it is only reloaded and used by that user, put this into a folder on its own and secure using network security. If you plan to secure text or Excel output, I would look again to network security as the solution. But perhaps I have not properly understood your requirement?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 12:10:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Connection-String/m-p/1283560#M402206</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-11-21T12:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Connection String</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Connection-String/m-p/1283561#M402207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's fairly simple to implement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Use regular Script statements to load a single row from an Excel&lt;/LI&gt;&lt;LI&gt;Use the &lt;SPAN style="font-family: 'courier new', courier;"&gt;peek()&lt;/SPAN&gt; function to extract username/password values from that single row and store them in variables. In the example I use &lt;SPAN style="font-family: 'courier new', courier;"&gt;vUsername&lt;/SPAN&gt; and &lt;SPAN style="font-family: 'courier new', courier;"&gt;vPassword&lt;/SPAN&gt;.&lt;/LI&gt;&lt;LI&gt;Use $-sign substitution to replace username and password at the end of your connection string when executing a CONNECT TO statement&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's about it. You can best start from an existing &lt;SPAN style="font-family: 'courier new', courier;"&gt;CONNECT TO&lt;/SPAN&gt; statement with unscrambled credentials. For an OLE DB connection, there are user ID and password parameters that accept unscrambled values. For example (using the SQL Server Native Client):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;CONNECT TO [Provider=SQLNCLI11;Server=$(vServerAddress);Database=$(vDataBase);Uid=$(vUsername);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Pwd=$(vPassword);];&lt;/SPAN&gt;&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, 21 Nov 2016 12:35:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Connection-String/m-p/1283561#M402207</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-11-21T12:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Connection String</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Connection-String/m-p/1283562#M402208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Peter. &lt;/P&gt;&lt;P&gt;However, the userid and password are encrypted, hence while reloading,error occurred : incorrect username or password. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 12:30:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Connection-String/m-p/1283562#M402208</guid>
      <dc:creator>sohb2015</dc:creator>
      <dc:date>2016-11-22T12:30:51Z</dc:date>
    </item>
  </channel>
</rss>

