<?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: How to write a Script to load SQL table into Qlikview table? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-write-a-Script-to-load-SQL-table-into-Qlikview-table/m-p/437128#M163054</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let us consider the variable has ,&lt;/P&gt;&lt;P&gt;('1234','4567')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 May 2013 07:28:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-05-08T07:28:25Z</dc:date>
    <item>
      <title>How to write a Script to load SQL table into Qlikview table?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-a-Script-to-load-SQL-table-into-Qlikview-table/m-p/437125#M163051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to load all the columns from SQL table into Qlikview table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tab1:&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;SQL&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 8pt;"&gt; Select * &lt;BR /&gt;FROM db&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;WHERE (col1 IN &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(a);&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG style="color: #808080; font-size: 8pt;"&gt;Is the above script is correct? I got an error msg,'Custom&amp;nbsp; read Failed'&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG style="color: #808080; font-size: 8pt;"&gt;﻿&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;﻿&lt;/STRONG&gt;&lt;SPAN style="color: #808080;"&gt;Please help me&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 07:04:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-a-Script-to-load-SQL-table-into-Qlikview-table/m-p/437125#M163051</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-08T07:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a Script to load SQL table into Qlikview table?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-a-Script-to-load-SQL-table-into-Qlikview-table/m-p/437126#M163052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;SPAN style="font-size: 8pt;"&gt; Select * &lt;BR /&gt;FROM db&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;WHERE col1 IN &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(a);&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;What value is there in variable a?&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;Regards,&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;Jagan.&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 07:20:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-a-Script-to-load-SQL-table-into-Qlikview-table/m-p/437126#M163052</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-05-08T07:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a Script to load SQL table into Qlikview table?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-a-Script-to-load-SQL-table-into-Qlikview-table/m-p/437127#M163053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem with the variable $(a)&lt;/P&gt;&lt;P&gt;rest is correct&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 07:22:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-a-Script-to-load-SQL-table-into-Qlikview-table/m-p/437127#M163053</guid>
      <dc:creator />
      <dc:date>2013-05-08T07:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a Script to load SQL table into Qlikview table?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-a-Script-to-load-SQL-table-into-Qlikview-table/m-p/437128#M163054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let us consider the variable has ,&lt;/P&gt;&lt;P&gt;('1234','4567')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 07:28:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-a-Script-to-load-SQL-table-into-Qlikview-table/m-p/437128#M163054</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-08T07:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a Script to load SQL table into Qlikview table?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-a-Script-to-load-SQL-table-into-Qlikview-table/m-p/437129#M163055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do we need to use load command or we can directly use SQL select to load the data into Qlikview table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tab1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load *&lt;STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;nbsp; SQL &lt;SPAN style="font-size: 8pt;"&gt;Select&amp;nbsp; * &lt;BR /&gt;FROM db&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;WHERE (col1 IN &lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;$(a));&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 07:34:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-a-Script-to-load-SQL-table-into-Qlikview-table/m-p/437129#M163055</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-08T07:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a Script to load SQL table into Qlikview table?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-a-Script-to-load-SQL-table-into-Qlikview-table/m-p/437130#M163056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got the below error,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Custome Read failed:&lt;/P&gt;&lt;P&gt;Tab1:&lt;/P&gt;&lt;P&gt;SQL Select * &lt;/P&gt;&lt;P&gt; FROM db&lt;/P&gt;&lt;P&gt; WHERE&amp;nbsp; (col1 IN ( '1234', '4567' ))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 07:49:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-a-Script-to-load-SQL-table-into-Qlikview-table/m-p/437130#M163056</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-08T07:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a Script to load SQL table into Qlikview table?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-a-Script-to-load-SQL-table-into-Qlikview-table/m-p/437131#M163057</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;&lt;BR /&gt;Try this script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;SPAN style="font-size: 8pt;"&gt; Select * &lt;BR /&gt;FROM db&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;WHERE col1 IN (&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(a));&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;Regards,&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;Jagan.&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 13:35:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-a-Script-to-load-SQL-table-into-Qlikview-table/m-p/437131#M163057</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-05-08T13:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a Script to load SQL table into Qlikview table?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-a-Script-to-load-SQL-table-into-Qlikview-table/m-p/437132#M163058</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL&lt;/P&gt;&lt;P&gt; Select * &lt;BR /&gt;FROM db&lt;/P&gt;&lt;P&gt;WHERE col1 IN $(a);&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, 08 May 2013 13:43:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-a-Script-to-load-SQL-table-into-Qlikview-table/m-p/437132#M163058</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2013-05-08T13:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a Script to load SQL table into Qlikview table?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-a-Script-to-load-SQL-table-into-Qlikview-table/m-p/437133#M163059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May I ask you how you populate the variable "a" ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what you need to do is, populate the variable with the full string including the '(" &amp;amp; ')'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let &lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;a&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = '('&amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;chr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(39) &amp;amp;'1234'&amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;chr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(39) &amp;amp;','&amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;chr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(39) &amp;amp; '5678'&amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;chr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(39) &amp;amp;')'; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;then do the select as &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;select &lt;SPAN style="font-size: 8pt;"&gt; * from DB&amp;nbsp; where col1 IN &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(a) &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I am using this method&amp;nbsp; with my QV app. So it will work &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Aji Paul.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 20:04:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-a-Script-to-load-SQL-table-into-Qlikview-table/m-p/437133#M163059</guid>
      <dc:creator />
      <dc:date>2013-05-08T20:04:40Z</dc:date>
    </item>
  </channel>
</rss>

