I am not sure if this solves your problem, but if you have debugging turned on the server, you can get several information from the servicefactory debugging object. Here is a UDF that I wrote a while back which return true if the query ran was a cached one.
http://www.cflib.org/udf.cfm?ID=1202 Thanks, Qasim On 1/22/07, Christopher Jordan <[EMAIL PROTECTED]> wrote: > > Yeah, but you'd still have a problem when using <CFQueryParam>s. :o' > > Chris > > Scott Weikert wrote: > > Well, you could start by throwing the SQL query code into a var to begin > > with: > > > > <cfset SQLVar = "Select * from table"> > > > > Or build it up as you would build it within the <cfquery> tags. > > > > Then execute it: > > > > <cfquery etc etc> > > #SQLVar# > > </cfquery> > > > > And since it's already in a var, you can write it to your DB as you see > fit. > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267223 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4