Possible Duplicate:
SQL query filtering by list of parameters
I have a method ADO.NET that passes an array of strings, a name, and an array of ints to a stored procedure. I can do that one at a time but I want to pass them along all at once .. is it possible?
Using SQL server 2008
Thanks
Sounds like what you want is a Table Parameter: http://msdn.microsoft.com/en-us/library/bb510489.aspx
Basically, you can construct a C# DataTable, and populate all the values in it, and then provide the table as a parameter to a SQL Stored procedure.
Unfortunately, without a bit more information, I can’t propose sample code for you.