CFEXECUTE and BCP
Hi All, I have the following code example but what I need is an INSERT from a text file to a table. The following example is the reverse of what I need.
Does anyone know how ?
example for a select:
<cfset destfilename ="E:\tempdata\" & dateformat(now(),"mm-dd-yyyy") & TimeFormat(now(), "-hh-mm-ss") & ".txt">
<cfset qryStr = "select * from pubs.dbo.titles">
<cfexecute name='bcp "#qrystr#" queryout "#destfilename#" -U UserName -P Password -c'></cfexecute>
