1) Create UDF in T-SQL as usual.
2) Add an ExecuteSQL task which calls the function, eg
select dbo.UDF(col1)
from tab1
The absence of evidence is not evidence of absence
- Martin Rees
The absence of consumable DDL, sample data and desired results is, however, evidence of the absence of my response
- Phil Parkin