Yes, you can use a table variable for this. It's like a temp table, but locally scoped.
Craig Stuntz
2010-01-15 15:06:44
Yes, you can use a table variable for this. It's like a temp table, but locally scoped.
There's no list type. Temporary table should be fine or you can use a table variable.
This has been asked quite a number of times. SQL Server SP - Pass parameter for “IN” array list?
Also have a look at
When using MS-SQL, I tend to use XML documents for this purpose, which can be easily passed from non-SQL clients (unlike temp tables, I believe) and queried by MS-SQL's T-SQL syntax.