Renaming stored procedures  Using stored procedures as security mechanisms

Chapter 16: Using Stored Procedures

Renaming objects referenced by procedures

You must drop and re-create a procedure if you rename any of the objects it references. A stored procedure that references a table or view whose name has been changed may seem to work fine for a while. In fact, it works only until Adaptive Server recompiles it. Recompilation takes place for many reasons and without notification to the user.

Use sp_depends to get a report of the objects referenced by a procedure.





Copyright © 2005. Sybase Inc. All rights reserved. Using stored procedures as security mechanisms

View this book as PDF