안녕하세요 여러분, 다른 저장 프로 시저의 결과 집합을 UDF로 전달해야하는 저장 프로 시저가 있습니다.이 저장 프로 시저는 차례로 CLR SqlFunction을 호출합니다. 어떻게해야하는지 알 수없는 것은 CLR SqlFunction에 결과 집합을 전달하는 방법입니다. 테이블 SqlType을 볼 수 없으며 온라인에서 예제를 찾을 수 있습니까? 아마도 잘못 검색하고있을 수 있습니까? 또한 전달 된 마지막 매개 변수를 보면 문제가 발생합니다. 결과 집합을 전달하는 방법을 모릅니다. 감사!CLR SqlFunction에 대한 쿼리 결과 전달
<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
작동하지 않는 경우에도 지금까지 가지고있는 코드를 게시하십시오. 메소드 서명은 특히 유용합니다. 그리고 어떤 버전의 SQL Server? – Yuck
SQL Server 2008 R2. –