Quote:
You can use stored procedures for any purpose for which you would use SQL statements, with these advantages:
* You can execute a series of SQL statements in a single stored procedure.
* You can reference other stored procedures from within your stored procedure, which can simplify a series of complex statements.
* The stored procedure is compiled on the server when it is created, so it executes faster than individual SQL statements.
* The compiled stored procedure can be cached in memory as well, for faster execution.