I've got a stored procedure that calls a CLR and returns a table. Currently, it accepts a single string, but I would like to update it to accept multiple, perhaps in an array or something.
Currently, the C# function looks like:
public static IEnumerable ParseData(System.String data){ ... }
Trying to change the parameter to string[], System.String[], IEnumerable, and ArrayList all have failed. When trying to build with one of those, it changes a generated.sql file to
CREATE FUNCTION [dbo].[ParseData] (@data /* Error: Unsupported type. */)
In case it matters, what I'm going for is to be able to call my function in SQL like so:
SELECT * FROM clr_parseData((SELECT TOP 10 value FROM table))