Renaming a Stored Procedure

Rename a stored procedure from Enterprise Explorer to refer to the procedure by a new name.

Prerequisites 

Before you can rename a stored procedure, be sure the data server that contains the stored procedure is running, and you created and established a connection to the data server.

  1. In the Databases folder in Enterprise Explorer, under the database connection profile, expand the navigation tree for the appropriate database and schema owner.
    Database Steps
    From an ASE connection profile
    1. Expand the Databases folder.
    2. Expand the tree for a database and then the tree for the appropriate schema owner.
    From a SQL Anywhere or Sybase IQ connection profile
    1. Expand the tree for a database.
    2. Expand the Schemas folder and then the tree for the appropriate schema owner.
  2. Expand the Stored Procedures folder, right-click the stored procedure you want to rename, and choose Rename.
  3. Enter a new name for the stored procedure, and click OK.
    Note: Do not use spaces in object names. Spaces could cause the renaming to fail.
Related concepts
Stored Procedures
Related tasks
Creating a SQL Anywhere or Sybase IQ Stored Procedure
Creating an ASE Stored Procedure
Migrating ASE Stored Procedures to Sybase IQ Syntax
Editing a Stored Procedure
Dropping a Stored Procedure


Created June 25, 2009. Send feedback on this help topic to Sybase Technical Publications: pubs@sybase.com