You would be better off using XML. See
Re: Selecting records based on cursor values Message #
690890>I want to send a comma deliminated list of strings to a stored proc and use this parameter in an IN clause. Example: "'110','120','130'"
>
>How do I format the string that contains a comma deliminated list of strings for use in the Exec command?
>
>How do I use this parameter in the IN clause of the stored proc?
--sb--