You can modify an existing procedure using either Sybase Central or Interactive SQL. You must have DBA authority or be the owner of the procedure.
In Sybase Central, you cannot rename an existing procedure directly. Instead, you must create a new procedure with the new name, copy the previous code to it, and then delete the old procedure.
In Interactive SQL, you can execute an ALTER PROCEDURE statement to modify an existing procedure. You must include the entire new procedure in this statement (in the same syntax as in the CREATE PROCEDURE statement that created the procedure).
To alter the code of a procedure (Sybase Central)
Connect to the database as a user with DBA or Resource authority.
In the left pane, double-click Procedures & Functions.
Select the procedure.
Use one of the following methods to edit the procedure:
You can open a separate window for each procedure and copy code between procedures.
If you use the Database Documentation Generator to document your SQL Anywhere database, you will have the option to include these comments in the output. See Documenting a database.
Send feedback about this page via email or DocCommentXchange | Copyright © 2008, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.0 |