> From: Russ [mailto:[EMAIL PROTECTED] 
> I am trying to optimize some queries, and as such, trying to 
> put several 1 row insert queries into one.  I am trying to 
> use a function to generate the sql, and then just loop 
> through each record and generate the sql I need.
> The issue I'm running into is that cfqueryparam is not 
> supported outside of cfquery.  Is there some way to escape 
> it, or am I stuck with putting the sql inline with the loop?

How about passing a list into a stored procedure and looping over the list
within the stored procedure to do all your inserts?

http://www.i-notions.com/articles/dynamicin/

Tango.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:233015
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

Reply via email to