Retrieving information about films...
<CFQUERY DATASOURCE="ows" NAME="GetFilms">
  SELECT FilmID, MovieTitle
  FROM Films
  ORDER BY MovieTitle
</CFQUERY>

<!--- Now output as simple comma-separated text --->
<!--- Put the column names on first line, then  --->
<!--- the actual data rows on their own lines   --->
<CFHEADER NAME="Content-Disposition" VALUE="filename=films.txt">
<CFCONTENT TYPE="text/plain">"FilmID","MovieTitle"
<CFOUTPUT QUERY="GetFilms">#FilmID#,"#MovieTitle#"
</CFOUTPUT>