A stored procedure is a special kind of user-defined function that contains embedded SQL statements. This increases the performance of frequently repeated tasks by bypassing repeated SQL compilation and optimization. Stored procedures are executed as commands in interactive SQL, or invoke it in application programs, trigger actions, or other stored procedures.
You can accomplish a wide range of objectives with stored procedures, including improving database performance, simplifying the writing of applications, and limiting or monitoring database access.
Stored procedures are stored as executable objects in the database and are available to every application running on the database. Application development time decreases because stored procedures are available to any application.