Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SSIS - Data Flow to flat File - Insert at start of file

Status
Not open for further replies.

drampall

Programmer
Oct 24, 2007
2
MU
Hi all,



In a foreachloop, I am inserting records into a flat file which is working fine. But the thing is that as the file grows, it takes longer for it to locate the EOF(End of File) of the flat file so as to insert the records.



I have around 70-100 lines written to the file at each loop and there are more than 20k records to be looped. wihich means that at the end I should be having 1400k - 20000k line in the text file.



One solution would be to insert the records at the start of the file itself so that it does not has to lookup the EOF each time before writting.



Another would be to generate separate files and then merge it.



Any idea how can this can be done?





Beside this I have to zip the file and then SFTP to a given address.



Any suggestion or help would be welcome.





Rdgs



David
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top