I have a large number of xls files and I would like to have a row count for each of the files to store in a report file which I will also use as a cache lookup in later stages. I dont want to create a source and rowcount component for each file (although I do have all the connection managers setup for them) Can this be done in a script?.
You can yes - create your script in SSIS and run some code like this
That said, it would probably be quicker to load it into a temporary table and then ditch the data - you can use a For Each to iterate through a folder location.
Points to note:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.