Unexpected function type.
SQL Server 2005
The function type created must match the selected new function type.
When you create a new function, the menu provides three choices:
-
New Inline Function.
-
New Table-valued Function.
-
New Scalar-valued Function.
The SQL syntax you use to create the new function must be compatible with the initial menu choice.