After creating a user-defined function, use the editor to modify parameters, permissions, or other properties.
PrerequisitesÂ
Be sure the data server that contains the user-defined function is
running, and that you have created and established a connection to the data
server.
-
In the Databases folder in Enterprise Explorer, under the database connection profile,
expand the Databases folder, expand the tree for a database,
and then expand the tree for the appropriate schema owner.
-
Expand the
User Defined Functions folder, right-click the
user-defined function
you want to edit, and select
Edit.
-
Edit the user-defined function
properties.
Editor
tab |
Description |
General |
- Change the Name. Enter a description in the
Comment field.
- Specify Parameters and their corresponding datatypes, input or output status, and defaults. To delete a parameter, highlight
it and click
Delete. To delete all parameters, click
Delete All. Use
Up and
Down to change the order
of parameters listed.
- Select a Return Type.
-
Select With Recompile, if appropriate.
If selected, the stored procedure is recompiled to create a new plan each time the function is first referenced in a SQL statement.
|
Source |
Manually edit the SQL code. To display line numbers for the SQL code, right-click in the left margin, and choose Show Line Numbers.
|
Permissions |
Set permissions for the user-defined function. You can
specify
Granted With Grant Option or Inherited permissions for the listed roles. |
DDL |
View the DDL for the user-defined function (read-only). |
-
Select
from the main menu, or Ctrl+S.
Send your feedback on this help topic to Sybase Technical Publications:
pubs@sybase.com
Your comments will be sent to the technical publications staff at Sybase, Inc.
For product-related issues or technical support, contact Sybase Technical Support
at 1-800-8SYBASE.