I have a stored procedure that needs to pass a result set from another stored procedure into a UDF, that in turn calls a CLR SqlFunction
. What I can't figure out how to do is how to pass the result set into my CLR SqlFunction
. I don't see a table SqlType
nor can I find any examples online, maybe I am searching incorrectly? Also if you look at the last parameters passed in, that is where I am having problems. Don't know how to pass in the result set. Thanks!
<SqlFunction(DataAccess:=DataAccessKind.Read, SystemDataAccess:=SystemDataAccessKind.Read)> _
Public Function GetMatchedConstituents(ByVal ID As SqlGuid, ByVal CustomID As SqlString,
ByVal KeyName As SqlString, ByVal FirstName As SqlString,
ByVal MiddleName As SqlString, ByVal AddressBlock_Home As SqlString,
ByVal AddressBlock_Business As SqlString, ByVal PostCode_Home As SqlString,
ByVal PostCode_Business As SqlString, ByVal Phone_Home As SqlString,
ByVal Phone_Business As SqlString, ByVal ResultSet As [WhatType? There isnt a SqlTable like I assumed]) As IEnumerable
'do duplicate comparing logic here
End Function