There's several techniques and timings described here
http://www.sommarskog.se/arrays-in-sql-2005.html
____________________________________________________
Deja View - The strange feeling that somewhere, sometime you've optimised this query before
How to get the best help on a forum
http://www.sqlservercentral.com/articles/Best+Practices/61537