CarlMarket wrote:
> I'd like to output the completed SQL Query that I'm
writing to CFQuery to the
> screen so I can see what the report is querying the
database.
>
> I tried <cfoutput>#myquery#</cfoutput> but
that didn't work.
in cf7 you can get several bits of of metadata about a
cfquery's resultset:
result_name.sql: The SQL statement that was executed.
result_name.recordcount: Current row of query that cfoutput
is processing.
result_name.cached: True if the query was cached; False
otherwise.
result_name.sqlparameters: An ordered Array of cfqueryparam
values.
result_name.columnList: Comma-delimited list of the query
columns.
result_name.ExecutionTime: Cumulative time required to
process the query.