Anybody know how to show the SQL that was actually sent to the database from a CFQUERY? For example:
<CFSET FldVal = "BIG">
<CFQUERY name="qry_See_Code">
SELECT * FROM myTable
WHERE aCol = '#FldVal#'
</CFQUERY>
I want to code something like:
<CFOUTPUT>#qry_See_Code.SQL#</CFOUTPUT>
and see:
SELECT * FROM myTable
WHERE aCol = 'BIG'
There are a couple query results you can display, e.g. queryname.recordCount, etc. What about the actual SQL syntax? Seems pretty basic.
TIA...
Michael
--
Michael Baraz
Building data-driven, high-performance, massively-scaleable, infinitely extensible, über
websites
<CFSET FldVal = "BIG">
<CFQUERY name="qry_See_Code">
SELECT * FROM myTable
WHERE aCol = '#FldVal#'
</CFQUERY>
I want to code something like:
<CFOUTPUT>#qry_See_Code.SQL#</CFOUTPUT>
and see:
SELECT * FROM myTable
WHERE aCol = 'BIG'
There are a couple query results you can display, e.g. queryname.recordCount, etc. What about the actual SQL syntax? Seems pretty basic.
TIA...
Michael
--
Michael Baraz
Building data-driven, high-performance, massively-scaleable, infinitely extensible, über
websites