I am attempting to pass a list of strings as a parameter into a store procedure that is expecting a UDT of a table with a single column. I am running into errors with SqlCommand object, and I've found posts that say to use a DataTable:
How to pass User Defined Table Type as Stored Procedured parameter in C#
I am wondering if there is an easier way considering that I don't have multiple columns. In the procedure, I am working with the table type as a sub-select against other tables, so it would be nice to keep this functionality.
Is there a better way, or just convert to DataTable?
Thanks!