Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Greetings All:
I only have the QV Personal DeskTop so I cannot read any .QVW samples that you good people might provide.
I have attached the script using very simple data to illustrate my question/problem. You will see that I have had to create a new .QVD to contain the previous .QVD data along with the new data being loaded.
Thanks to everyone
Dave
There is no facility to update in place or append to an existing QVD. The QVD must be rewritten in it's entirety with a single STORE statement, The script you posted is the only way to "update" a QVD:
1. Collect all rows, including any existing QVD rows, into a single resident table.
2. STORE the resident table to QVD file overwriting any existing QVD file.
-Rob
Hi,
The answer is Yes.
The question i have is is this complete new set of data or incremental?
//Ok so if it's complete new set of data do this
NewOrders:
LOAD OrderID,
OrderDesc,
OrderQty
FROM
(txt, codepage is 1252, embedded labels, delimiter is ',', msq);
Concatenate(NewOrders)
LOAD OrderID,
OrderDesc,
OrderQty
FROM
(qvd);
STORE NewOrders INTO C:/QVProgramTestDevelopment/OrdersInQVDFormatTwo.qvd;
If it's incremental load, there is caution here. The incoming data would have been modify in one way or the other, i.e. DELETE, INSERT, or modified. In this
//If the data have been modified you need to store last reload timestamp and current timestamp in a variable then use something like this. Here you can also use WHERE NOT EXISTS(OrderID) in place of the date time used
NewOrders:
LOAD OrderID,
OrderDesc,
OrderQty
FROM
(
Concatenate(NewOrders)
LOAD OrderID,
OrderDesc,
OrderQty
FROM
(qvd)
Where OrderDate >= '$(vLastExtractionDate)'
and OrderDate < '$(vCurrentExtractionDate)';
;
//Loading data from transactional database where data deletion is allow.
NewOrders:
LOAD OrderID,
OrderDesc,
OrderQty
FROM
(txt, codepage is 1252, embedded labels, delimiter is ',', msq);
Inner Join(NewOrders)
LOAD OrderID,
OrderDesc,
OrderQty
FROM
(qvd)
Where QVD_Stored_TimeStammp >= ‘20150207’ //where the date here is the timestamp of when the data //was last stored.
;
Hopefully this helps
There is no facility to update in place or append to an existing QVD. The QVD must be rewritten in it's entirety with a single STORE statement, The script you posted is the only way to "update" a QVD:
1. Collect all rows, including any existing QVD rows, into a single resident table.
2. STORE the resident table to QVD file overwriting any existing QVD file.
-Rob
Thanks for your input. I must apologize for the title of my last post in which I said in error "Can I add/update an existing .QVD with having to create a new .QVD? It should have read without having to create a new .QVD?
All I want to do is to take an old .QVD and add new records to it and then re-create it with the combined content. I believe that Rob's response is the way to go but I am still having trouble with the script. I will resubmit with my revised script.
Thanks
DAve
Thanks for your input. I must apologize for the title of my last post in which I said in error "Can I add/update an existing .QVD with having to create a new .QVD? It should have read without having to create a new .QVD?
All I want to do is to take an old .QVD and add new records to it and then re-create it with the combined content. I believe that Rob's response is the way to go but I am still having trouble with the script. I will resubmit with my revised script.
Thanks
DAve