<?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: Incremental Load in Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Incremental-Load-in-Script/m-p/700967#M1060273</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vikas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try below code hope it helps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * FROM &lt;C&gt; (qvd);&lt;/C&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;where NOT Exists(Cust_ID) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT * FROM "DB_NAME".dbo."Customer"&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE Customer into "C:\PROJECTS\QLIKVIEW\CUSTOMER.QVD" ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nitha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Sep 2014 13:15:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-09-26T13:15:42Z</dc:date>
    <item>
      <title>Incremental Load in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-in-Script/m-p/700965#M1060271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to do an incremental load for a customer table from an SQL database into my local QVD file.&lt;/P&gt;&lt;P&gt;The SQL Table has &lt;STRONG&gt;&lt;EM&gt;Cust_ID&lt;/EM&gt;&lt;/STRONG&gt; as the primary key. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the script as given below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM style=": ; color: #3366ff;"&gt;Customer:&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;EM style="font-size: 8pt;"&gt;LOAD * FROM &lt;C&gt; (qvd);&lt;/C&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;EM style="font-size: 8pt;"&gt;Concatenate&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #3366ff;"&gt;&lt;EM&gt;SQL SELECT * FROM "DB_NAME".dbo."Customer" where NOT Exists(Cust_ID) ;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #3366ff; font-size: 8pt;"&gt;STORE Customer into "C:\PROJECTS\QLIKVIEW\CUSTOMER.QVD" ;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While reloading, I get an error:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;EM style="line-height: 1.5em; color: #3366ff; font-size: 8pt;"&gt;SQL##f - SqlState: 37000, ErrorCode: 102, ErrorMsg: [Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near 'Cust_ID'.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM style="color: #3366ff; font-size: 8pt;"&gt;Concatenate&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM style="color: #3366ff; font-size: 8pt;"&gt;SQL SELECT * FROM "DB_NAME".dbo."Customer" where NOT Exists(Cust_ID)&lt;/EM&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure what I am doing wrong here.&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 20:37:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-in-Script/m-p/700965#M1060271</guid>
      <dc:creator>vksthkkr</dc:creator>
      <dc:date>2014-09-25T20:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-in-Script/m-p/700966#M1060272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're mixing SQL and Qlikview syntax. Your SQL database does not understand the Qlikview specific Exists syntax. Furtermore the SQL database cannot know which Cust_ID values Qlikview has already loaded. So you will will first have to load all the data from the SQL database into Qlikview before you can then filter out the Cust_ID's that you already loaded.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 11:07:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-in-Script/m-p/700966#M1060272</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-09-26T11:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-in-Script/m-p/700967#M1060273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vikas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try below code hope it helps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * FROM &lt;C&gt; (qvd);&lt;/C&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;where NOT Exists(Cust_ID) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT * FROM "DB_NAME".dbo."Customer"&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE Customer into "C:\PROJECTS\QLIKVIEW\CUSTOMER.QVD" ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nitha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 13:15:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-in-Script/m-p/700967#M1060273</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-26T13:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-in-Script/m-p/700968#M1060274</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;Exists() is the qlikview syntax so sql it won't understand exists functionality.Here you can do using of preceding load which helps to the exists functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Try this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cust:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * from cust.qvd;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;where not exist(custID);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sql select * from DBO&amp;gt;Cust;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;store Cust into cust.qvd;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 13:32:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-in-Script/m-p/700968#M1060274</guid>
      <dc:creator />
      <dc:date>2014-09-26T13:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-in-Script/m-p/700969#M1060275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suggest changing the code to:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Cust:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load *, custID as custIDRef from cust.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Concatenate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load *&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;where not exist(custIDRef, custID);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sql select * from DBO&amp;gt;Cust;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;drop field custIDRef;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;store Cust into cust.qvd;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 13:43:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-in-Script/m-p/700969#M1060275</guid>
      <dc:creator>simenkg</dc:creator>
      <dc:date>2014-09-26T13:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-in-Script/m-p/700970#M1060276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A href="https://community.qlik.com/qlik-users/96544"&gt;Gysbert Wassenaar&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That was very helpful! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 14:18:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-in-Script/m-p/700970#M1060276</guid>
      <dc:creator>vksthkkr</dc:creator>
      <dc:date>2014-09-26T14:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-in-Script/m-p/700971#M1060277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. That worked!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;A href="https://community.qlik.com/qlik-users/122974"&gt;Nitha P&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 14:21:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-in-Script/m-p/700971#M1060277</guid>
      <dc:creator>vksthkkr</dc:creator>
      <dc:date>2014-09-26T14:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-in-Script/m-p/700972#M1060278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A href="https://community.qlik.com/qlik-users/137372"&gt;Simen Kind Gulbrandsen&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 14:22:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-in-Script/m-p/700972#M1060278</guid>
      <dc:creator>vksthkkr</dc:creator>
      <dc:date>2014-09-26T14:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-in-Script/m-p/700973#M1060279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The above incremental load "syntax only correct". but load time will not improve. As in preceeding load it will read entire sql table and then only it will verify the NOT EXISTS condition. so you are just skipping the rows loading in Qlikview internal table. But you are executing the sql with whole set of data again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it seems it is a limitation with qlikview to read data from Sql TABLE, we cannot do incremental staregy unless we have load time stamp in your SQL TABLE.&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Chinna&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 08:26:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-in-Script/m-p/700973#M1060279</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-22T08:26:27Z</dc:date>
    </item>
  </channel>
</rss>

