<?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 ODBC connection from Variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/ODBC-connection-from-Variable/m-p/1065564#M924547</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have one Redshift and another MySQL server Database.&lt;/P&gt;&lt;P&gt;I have created two separate DSNs for same.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;We have a requirement, where just by changing the variable names, the user should be able to switch between MySQL and Redshift.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have created three variables for DSN, UserName and Password and have the string in Edit Script section as :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;ODBC CONNECT TO $(vDSN) (XUserId is $(vUser), XPassword is $(vPassword));&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;If I use below statement, the LOAD statement for aliasing does not work, but data gets loaded -&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;EM&gt;ODBC CONNECT TO $(vDSN) ;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any inputs for same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even if I provide Username and Password, the LOAD statement is not working for MySQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know your inputs on same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;MK&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>ODBC connection from Variable</title>
      <link>https://community.qlik.com/t5/QlikView/ODBC-connection-from-Variable/m-p/1065564#M924547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have one Redshift and another MySQL server Database.&lt;/P&gt;&lt;P&gt;I have created two separate DSNs for same.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;We have a requirement, where just by changing the variable names, the user should be able to switch between MySQL and Redshift.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have created three variables for DSN, UserName and Password and have the string in Edit Script section as :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;ODBC CONNECT TO $(vDSN) (XUserId is $(vUser), XPassword is $(vPassword));&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;If I use below statement, the LOAD statement for aliasing does not work, but data gets loaded -&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;EM&gt;ODBC CONNECT TO $(vDSN) ;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any inputs for same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even if I provide Username and Password, the LOAD statement is not working for MySQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know your inputs on same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;MK&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ODBC-connection-from-Variable/m-p/1065564#M924547</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC connection from Variable</title>
      <link>https://community.qlik.com/t5/QlikView/ODBC-connection-from-Variable/m-p/1065565#M924548</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;You can use the If statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If variable = 1 then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Connect to Mysql&lt;/P&gt;&lt;P&gt;Else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Connect to RedShift&lt;/P&gt;&lt;P&gt;End if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 08:30:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ODBC-connection-from-Variable/m-p/1065565#M924548</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2016-04-20T08:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC connection from Variable</title>
      <link>https://community.qlik.com/t5/QlikView/ODBC-connection-from-Variable/m-p/1065566#M924549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Kaushik for the quick reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can use that, but after that as well, If I am taking values of UserName, DSN and Password for MySQL from variable, LOAD statement asliasing does not work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 09:24:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ODBC-connection-from-Variable/m-p/1065566#M924549</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-20T09:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC connection from Variable</title>
      <link>https://community.qlik.com/t5/QlikView/ODBC-connection-from-Variable/m-p/1065567#M924550</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;It wont work because the username and password should be in encrypted format. Other wise it wont work and I dont think so its possible to know what encryption technique is used to encrypt the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 09:27:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ODBC-connection-from-Variable/m-p/1065567#M924550</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2016-04-20T09:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC connection from Variable</title>
      <link>https://community.qlik.com/t5/QlikView/ODBC-connection-from-Variable/m-p/1065568#M924551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;agrreed with&amp;nbsp; &lt;A href="https://community.qlik.com/qlik-users/34510"&gt;kaushik.solanki&lt;/A&gt;‌..you need to create the connection string inside the QV and its encrypted with the logic defined by Qlik so you cannot rebuild it using the variables ...try like creating to different connection strings and based on the condition you could connect for the required data base &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 09:38:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ODBC-connection-from-Variable/m-p/1065568#M924551</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2016-04-20T09:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC connection from Variable</title>
      <link>https://community.qlik.com/t5/QlikView/ODBC-connection-from-Variable/m-p/1065569#M924552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have first connected the same using direct ODBC, connect box.&lt;/P&gt;&lt;P&gt;After that, I just copy paste the encrypted username and Password into variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD statement works well for Redshift but not for MySQL.&lt;/P&gt;&lt;P&gt;If I just use ODBC connection for MySQL, without variables, then LOAD statement works as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in case of variables does not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 09:39:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ODBC-connection-from-Variable/m-p/1065569#M924552</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-20T09:39:54Z</dc:date>
    </item>
  </channel>
</rss>

