> That makes it very prone to caching the wrong execution plan: > http://blog.mxconsulting. > com/mxc-blog/archives/entries/B17FBDFD-EBB8-DFFC-87E24B10A97A0BA2. > shtml
In that case, if it's unlikely that SQL will be able to hold the execution plan for such a dynamic query, I'll keep it in CF. Unless there are any other methods that will improve the performance of the query (tried using a view, but no change in performance). Tony ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net http://www.cfhosting.net Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185423 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

