How to pass an array to SQL SERVER 2008
stored procedure and insert all the values of a array into a database table.
For Example: From ASP.NET mvc C#
, I would pass a parameter having multiple values separated by comma
as below
string category = "Cat1, Cat2, Cat3, Cat4";
I would like to insert all the values of above string in a table called Categories.
How could I achieve this using SQL SERVER 2008
.