>I need to do a simple download of 100,000 plus records out of SQL. I >would like the user to get prompted to save a .txt file They will be >using recent versions of IE. I've been playing around with CFHeader and >CFContent. It works OK if specify Application/msexcel. Does anyone have >any code examples dumping to a text file? > >Lee
<cfsetting enablecfoutputonly="true" showdebugoutput="false"> <cfquery name="testqry" datasource="sc_rhea"> select ID, ITEM_CONTENT_ID, REFERS_TO_ITEM_ID, EXTERNAL_REFERENCE from SC_ITEM_REFERS_TO where id < 135000 </cfquery> <cfheader name="Content-Type" value="text/plain"> <cfheader name="Content-Disposition" value="attachment;filename=sample.txt"> <cfoutput query="testqry">#ID#,#ITEM_CONTENT_ID#,#REFERS_TO_ITEM_ID#,#EXTERNAL_REF ERENCE# </cfoutput> posting this from the website, so watch the formatting: it should be <cfoutput query="xyz">#col1#,[EMAIL PROTECTED] all on one line][hard return] </cfoutput> /t ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244292 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

