Learn More About Procedural Objects

Stored procedures and triggers standardize actions performed by more than one application program. By coding the action once and storing it in the database for future use, applications need only execute the procedure or fire the trigger to achieve the desired result repeatedly. And since changes occur in only one place, all applications using the action automatically acquire the new functionality if the implementation of the action changes. When you create a procedure or trigger, it is automatically checked for correct syntax, and then stored in the system tables. The first time any application calls or fires a procedure or trigger, it is compiled from the system tables into the server's virtual memory and executed from there. User-defined functions and event handlers are similar to stored procedures with the differences noted below.

Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com