Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

DataBase table count

Hi all,

I have a tricky requirement.

I am extracting a table from DB and storing into QVD. (works fine till now)

when the table crashes in DB and qvw reloads then we will get zero records . Is there any way if the table crashes/deleted the dashboad should get the previous records?

Hope to get some solutions and pls share sample app

4 Replies
jagan
Luminary Alumni
Luminary Alumni

Hi,

Try this script

TableName:

LOAD

*

FROM DataSource;

If NoOfRows('TableName') > 0 THEN

     STORE TableName INTO QVDFileName.qvd;

END IF;

Hope this helps you.

Regards,

Jagan.

Not applicable
Author

Thanks Jagan

what if table is empty then the qvd should store the old data

could you specify this logic pls

jagan
Luminary Alumni
Luminary Alumni

Hi,

If the table is empty we are not updating the QVD with the empty table, so you will get the old data from QVD since is not replaced with the latest one.

Regards,

Jagan.

Not applicable
Author

Thanks jagan

hope to see you back