How to pass an array into a SQL Server stored procedure?
For example, I have a list of employees. I want to use this list as a table and join it with another table.
There is no support for array in sql server but there are several ways by which you can pass collection to a stored proc .
The below link may help you
passing collection to a stored procedure