Hery Susanto WR wrote:Thanks Ravi, it helped me so much, now I know what the "Traverse subfolders" is for :)
Is to get to the subfolders; in your case that is required as SSIS needs to go all branch_nm subfolders.
Hery Susanto WR wrote:
One more question Ravi, when I put the value into variable, can I get that value inside Script Component my plan is establish the flat file connection inside Script Component and get the data row by row using Synchronous method and push it into database. Is that a problem
You could; but the dataflow has already all that functionality built-in. Inside of the ForEach loop container, place a dataflow. Then in the dataflow, use a flat file source component and the required destination component. The trick is to use an expression in I have an example that shows how to do it for excel files. See an example here:
http://blogs.conchango.com/jamiethomson/archive/2005/05/30/1489.aspx
Hery Susanto WR wrote:
One more question Ravi, when I put the value into variable, can I get that value inside Script Component my plan is establish the flat file connection inside Script Component and get the data row by row using Synchronous method and push it into database. Is that a problem
Thanks in advance.
Yes you can. You can pass the variable to the script component.
Hery Susanto WR wrote:
Hi Rafael,
I've already used the method that you've explained but I can't control the datatype for each column, so I want to explore using Script Component. How can I get the sample for it, since Script Component have two method when we using it (Synchronous and Asynchronous).
Thanks in advance.
Are you saying that each flat file has a different table structure
I agree with Rafael, the DFT has a lot of functionality built in it. Its better to use it rather than writing your own. See if you can do that.
A related, but "right on track" question.
I don't know what the folder of the files I want to work with runtime. Is it possible to make the Folder option dynamic through expressions If so, how
Regards,
Thomas
Hery Susanto WR wrote:
Hi Ravi,
Yup each flat file has a different structure.
I'm sure the built-in functionality within DFT has a great help but when we have to do a customization can we just depend on it
If each file has a different structure, I guess you are forced to do something like what you are doing.
But see if you can group the flat files which have similar structure. You can use the DFT for each group if you have a small number of them.
Threko wrote:
A related, but "right on track" question.
I don't know what the folder of the files I want to work with runtime. Is it possible to make the Folder option dynamic through expressions If so, how
Yes, you can. Its a little tricky though.
That should do it. Let me know if it works.