Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi ALL,
whats wrong in my script? what i need:
load data from qvd file
check qvd for last update
check sql db for new products by update date,
then load from sql only new products,
and update qvd file with new products
thanks
Sigitas
Can you share the symptoms of the problem you are having ?
Best Regards, Bill
Make sure you're giving maxdate the date format that your sql database expects.
And I suggest you take a look at the Qlikview Components library. See this blog post for more information: Qlikview Notes: Incremental Load using Qlikview Components
attached to my first post
try this:
SET vQvdFile='Purchase.qvd';
SET vTableName='Test';
SET vPK='PurchaseID';
LET vQvdExists = if(FileSize('$(vQvdFile)') > 0, -1, 0);
IF $(vQvdExists) THEN
maxdateTab:
LOAD Max(Date(Date#(ModifiedOn,'YYYY.MM.DD'))) as maxdate
FROM $(vQvdFile) (qvd);
LET vIncrementalExpression = 'WHERE ModifiedOn >=' & peek('maxdate',0,'maxdateTab');
DROP table maxdateTab;
ELSE
exit script ;
END IF
Hi,
Pls find the attachment..
Hi, Sigitas.
If you need help with incremental loads, have a look at this blog.
http://www.quickintelligence.co.uk/qlikview-incremental-load/
Regards,
Neil
thanks for help