Dropping User-Defined Functions; Permissions To Execute User-Defined Functions - Sybase Adaptive Server IQ 12.4.2 Administration And Performance Manual

Table of Contents

Advertisement

Dropping user-defined functions

Permissions to execute user-defined functions

SELECT fullname ('Jane', 'Smith');
fullname ('Jane','Smith')
Jane Smith
The
function can be used by any user who has been granted
fullname
EXECUTE permission for the function.
Once a user-defined function is created, it remains in the database until it is
explicitly removed. Only the owner of the function or a user with DBA
authority can drop a function from the database.
The following statement removes the function
DROP FUNCTION fullname
A user-defined function is owned by the user who created it, and that user can
execute it without permission. Permission to execute it can be granted to other
users using the
GRANT EXECUTE
For example, the creator of the function
use
with the statement:
fullname
GRANT EXECUTE ON fullname TO another_user
The following statement revokes permission to use the function:
REVOKE EXECUTE ON fullname FROM another_user
For more information on managing user permissions on functions, see
"Granting permissions on procedures" on page 361
CHAPTER 6
Using Procedures and Batches
fullname
command.
could allow
fullname
from the database:
to
another_user
237

Advertisement

Table of Contents
loading

Table of Contents