Use this statement to modify a function. You must include the entire new function in the ALTER FUNCTION statement.
ALTER FUNCTION [ owner.]function-name function-definition
function-definition : CREATE FUNCTION syntax
ALTER FUNCTION [ owner.]function-name SET HIDDEN
Syntax 1 The ALTER FUNCTION statement is identical in syntax to the CREATE FUNCTION statement except for the first word. Either version of the CREATE FUNCTION statement can be altered.
Existing permissions on the function are maintained, and do not have to be reassigned. If a DROP FUNCTION and CREATE FUNCTION were carried out, execute permissions would have to be reassigned.
Syntax 2 You can use SET HIDDEN to scramble the definition of the associated function and cause it to become unreadable. The function can be unloaded and reloaded into other databases.
This setting is irreversible. If you will need the original source again, you must maintain it outside the database.
If SET HIDDEN is used, debugging using the debugger will not show the function definition, nor will it be available through procedure profiling.
Must be the owner of the function or have DBA authority.
SQL/2003 Vendor extension.