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
--

Mark Drew
http://www.markdrew.co.uk/blog/

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

Reply via email to