> I have a query that returns one row from the DB which uses > cfqueryparam. I'd heard about a problem with caching so after > a puzzling 30 seconds asking myself where my new column had > gone I thought I'd remove the cfqp which worked. Now when I > put it back in I still get the cached data. > > So the question is, how do I clear this cached data? I don't > want to restart anything but I don't mind running a SQL > statement. It's SQL Server 2K. So something like DBCC > FREEPROCCACHE but for statement.
I'm not sure it's the CFQUERYPARAM which is causing the problem. Conceivably, you could have the same problem if you had a hardcoded value in your SQL, if your datasource is configured to generate prepared statements, and you might see the problem go away if you added a CFQUERYPARAM! If you add a column, and use "SELECT *", and the prepared statement is cached on the database server, your query often won't include the new column. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:200054 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=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

