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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating different Export files from DTS package 1

Status
Not open for further replies.

MtProgrammer

Programmer
Dec 14, 2004
7
US
Does anyone know how to create multiple .csv files from a table containing the list of names? I have a DTS package that imports a flat file containing accounts and their email addresses, and would like to then export each of these rows into their own .csv file for emailing out. I'm not sure how to set up a looping routine that will create a new file name & store the related data correctly. Any comments or ideas would be helpful.
 
Have a look at (SQL2000) Write File Transformation, with some effort I think you can achieve what you need. I remember WFT is appending write, so you somehow have to delete existing files before Transformation, in the case you want just new data.

Cheers


[blue]Backup system is as good as the latest recovery[/blue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top