ASA SQL Reference
SQL Statements
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 following the name
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 stored procedure debugger will not show the function definition, nor will it be available through procedure profiling.
Must be the owner of the function or be DBA.
Automatic commit.
Hiding the contents of procedures, functions, triggers and views
SQL/92 Vendor extension.
SQL/99 Vendor extension.
Sybase Not supported by Adaptive Server Enterprise.