Dumping SQL from Coldfusion Query Object

Dumping out the SQL from a query object, even more so if it’s been passed around through some functions, can be a pain. Usually you can wrap the query in a CFDUMP and call it a day, however for very large queries or if you want it more concise use this

<queryname>.getMetaData().getExtendedMetaData().sql

Eric Stevens

Eric Stevens

I am a senior developer at Infinite Web Design.
Eric Stevens

Latest posts by Eric Stevens (see all)