Best Way To Extract Large Text Files From Query
Using CF7/SQL Server 2000. I need to extract about 50,000 records from another server, and save it to a .CSV file. Not sure what the best method is for this. I've got the query written, and it will pull all the records. But don't want to display them on the screen, just store in a .CSV file somewhere on the server.
I've looked at CFFILE and CFDIRECTORY, and those don't seem to be the best tools for this. What about using CFCONTENT with CFHEADER? I use that to output to Excel files
<CFCONTENT type="application/vnd.ms-excel">
<CFHEADER NAME="Content-Disposition" VALUE="attachment; filename=c:\mydir\myfile.xls">
But when trying to use it, it doesn't save the file on my drive. Would appreciate advice on the best tools/tags for extracting large volumes of data from other servers, and saving to a local file.
Once working, ultimately, I'd like to set it up, so the .CFM job runs daily, automatically, extracts the data and FTP's it to another server. I've seen the CFFTP tag, but until I can get a file saved on my drive, or another server's drive, there's nothing to FTP. Thanks for any help/advice.
Gary
