The UserDefinedFunction object exposes the attributes of a single user-defined function.
With the UserDefinedFunction object, you can:
The Name property of a UserDefinedFunction object uses the SQL Server sysname data type. The value of the Name property must be unique (named by owner) within a SQL Server database.
To create a SQL Server user-defined function
After a user-defined function is created, you cannot reset the Name property. To change the name of a user-defined function, you must call the Remove method to drop and then re-create the object.
Note The UserDefinedFunction object is only compatible with SQL Server 2000.