Tag Archives: firstRowAsHeaders

Converting a .CSV file to a query and specifying custom column names using the CFHTTP tag in ColdFusion

In a previous example, “Converting a .CSV file to a query using the CFHTTP tag in ColdFusion”, we saw how you could convert an external .CSV (comma separated values) file into a query using the <CFHTTP> tag in ColdFusion and setting the name, url, and firstRowAsHeaders attributes.

The following example shows how you can override the CSV file header row with custom column names for the query by specifying the columns attribute on the <CFHTTP> tag in ColdFusion.

Continue reading