Chapter 20: Changes to System Procedures, Functions, and Commands
SQL UDF permission check
When a function is created, Adaptive Server
checks to see if it is a SQL UDF or a SQLJ UDf. If it is a SQLJ
UDF, Adaptive Server checks for “sa” permissions.
If it is a SQL Function Adaptive Server checks for “create function” priveledges.