Hi Mark Check out this post from Neil Robertson-Ravo on the CF-SQL HOF list:
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:6/messageid:2346 He uses a UDF to convert your list into a 'table' variable that you could then iterate through in your SP. HTH On 1/11/06, Mark Drew <[EMAIL PROTECTED]> wrote: > > Does anyone know how to loop over a list that you have passed into a > stored procedure (from within the stored procedure)? > > I am trying to insert some relationships into a table: > > i.e. insert user details and pass a list of permissions (e.g. 1, 4, 6, 8) > loop over user permission list > insert permission > end loop > > this is with MS SQL. > > Sorry for the OT but I thought someone here might know... been making > my bald spot bigger by the amount of head-scratching I am going > through > -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:229100 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

