>Is there a simple way to do that? I realize there is the >queryname.columnlist variable returned with cfquery, would there be an >easy way to grab that record as a single query object or structure >that I could then serialize into WDDX and store in my new table? >
Pete, Nathan Dintenfass wrote a good UDF that does this called (of course) QueryRowToStruct. I've used it in a couple of apps. http://www.cflib.org/udf.cfm?ID=358 >From CFlib: Description Convenience function for turning a given row of query into a structure. By default, it uses the first row. Parameters Name Description Required query The query to work with. Yes row Row number to check. No Defaults to row 1. Return Values Returns a structure. Example <cfscript> q = querynew("id,name"); queryAddRow(q); querySetCell(q,"id",1); querySetCell(q,"name","Nathan Dintenfass"); queryAddRow(q); querySetCell(q,"id",2); querySetCell(q,"name","Ben Archibald"); queryAddRow(q); querySetCell(q,"id",3); querySetCell(q,"name","Raymond Camden"); </cfscript> <cfdump var="#queryRowToStruct(q)#"> <cfdump var="#queryRowToStruct(q,2)#"> -- hth, larry -- Larry C. Lyons Web Analyst BEI Resources American Type Culture Collection email: llyons(at)atcc(dot)org tel: 703.365.2700.2678 -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202640 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

