• First option, use a table valued parameter. Here's documentation on how that works.

    Another option, use Jeff Moden's scripts to turn comma delimited lists into a table. Here's documentation[/url] on that.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning