Qualifying names inside procedures  Renaming objects referenced by procedures

Chapter 16: Using Stored Procedures

Renaming stored procedures

Use sp_rename to rename stored procedures. Its syntax is:

sp_rename objname, newname 

For example, to rename showall to countall:

sp_rename showall, countall 

The new name must follow the rules for identifiers. You can change the name only of stored procedures that you own. The Database Owner can change the name of any user’s stored procedure. The stored procedure must be in the current database.





Copyright © 2005. Sybase Inc. All rights reserved. Renaming objects referenced by procedures

View this book as PDF