The SQL function approach looks nice and all but it still just doesn't feel as 'clean' as a normal CFQUERY using CFQUERYPARAM. When I use a CFQUERYPARAM on the list, it generates the following:
SELECT * FROM Content WHERE (ContentType IN (?,?,?,?,?)) Query Parameter Value(s) - Parameter #1(CF_SQL_INTEGER) = 7 Parameter #2(CF_SQL_INTEGER) = 11 Parameter #3(CF_SQL_INTEGER) = 16 Parameter #4(CF_SQL_INTEGER) = 19 Parameter #5(CF_SQL_INTEGER) = 20 This looks very neat and clean. I was hoping SQL did the same. On a related note, I'm seeing that queries using CFQUERYPARAM are running on par with stored procedures. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:6:2355 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/6 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:6 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.6 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
