>Is it possible to structure your SQL query (target SQL Server) so that
>it returns a CSV file rather than manipulate the returned results in
>your application to produce a CSV file.
>

As far as I know (and I could be wrong) No, but that said its fairly easy to 
convert a query to a CSV. There's several UDF's at CFLib that can convert 
queries to CSV's:

QueryToCSV (CF5) http://www.cflib.org/udf.cfm?ID=556

QueryToCSV2 (CFMX) http://www.cflib.org/udf.cfm?ID=1197 - uses the Java 
StringBuffer Class in java.lang package - much faster than regular string 
manipulation

CSVFormat (CF5) http://www.cflib.org/udf.cfm?ID=404

hth,

larry
--
Larry C. Lyons
Web Analyst
BEI Resources
American Type Culture Collection
email: llyons(at)atcc(dot)org
tel: 703.365.2700.2678
--

 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:210705
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to