Passing arrays, key value pairs, and other collections to SQL stored procedures using table valued parameters.

Overview MS SQL server doesn’t support arrays or other collection data types, so we can’t directly send in these types as parameters to stored procedures from client applications. But fortunately, SQL does allow us to send in DataTable objects in MS SQL Server 2008 and later. The solution here is to simply convert our collection…

7