Use SQL Server's export wizard to do the export and save it as a DTS
package. Then create a stored procedure to shell out and execute
dtsrun and use cfstoredproc to execute it, or use cfexecute for to execute dtsrun.
Instant Excel spreadsheet...

-- 
 jon
 mailto:[EMAIL PROTECTED]

Friday, February 14, 2003, 1:10:51 PM, you wrote:
CS> Hi,

CS>         Can anybody send me the code snippet using I can export the data to
CS> Excel spread sheet. I am able to create a '.csv' file but not a '.xls' file.

CS>         When I am using the '.xls' for creating the file it is dumping all
CS> the information, using a coma delimited list into one column and not
CS> separating them into separate columns. 

CS>         Can anybody give me code snippet or direction in which I have to
CS> work
CS> for this.

CS> The code I am using is:

CS> <cffile action="WRITE" addnewline="Yes" file="USE_THIS_FOR_AWARDS.csv" 
CS> output="AWARDID, LASTNAME, FIRSTNAME, MIDDLENAME, COURSENAME, SEMESTER,
SCHOOLNAME">>

CS> <cfoutput query="awardsList">
CS> <cffile action="APPEND" addnewline="Yes" file="USE_THIS_FOR_AWARDS.csv"
CS>         output="#AWARDID#, #LASTNAME#, #FIRSTNAME#, #MIDDLENAME#,
CS> #COURSENAME#,   #SEMESTER#, #ORGANIZATIONNAME#">
CS> </cfoutput>


CS> Any help is appreaciated!! 
CS> - Sudheer 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to