Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
tusharneral
Contributor
Contributor

How to load first 10 qvd files from folder

How to load first 10 qvd files from folder.

3 Replies
Kashyap_R
Partner - Specialist
Partner - Specialist

Hi

Can u please tell me the qvd names and how u want to load it?

Thanks

Thanks and Regards
Kashyap.R
nikitadeshwal
Partner - Contributor III
Partner - Contributor III

Hi,

You can use this,

for count= 1 to 10 ;
LOAD
*
FROM [lib://Connection_Name/Folder_Name/$(count).qvd]
(qvd);

next

Just your qvds should have named in 1,2,3...100 formate

Regards,

Nikita Deshwal

 

Anil_Babu_Samineni

How about this?

FOR Each File in FileList('File Name List Path')

Qvd_List:

    LOAD '$(File)' AS QVD_Name,

             FileTime('$(File)') AS QVD_Modified_Date

    AutoGenerate(1);

Next File

First_10_QVD_Load:

FIRST 10 LOAD QVD_Name,

     QVD_Modified_Date

RESIDENT Qvd_List ORDER BY QVD_Modified_Date DESC;

DROP TABLE Qvd_List;

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful