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. |