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
You can lead a horse to water, but a pencil must be lead.
Stan Laurel