| Author: sangeetha 28 Apr 2009 | Member Level: Gold Points : 2 |
Stored procedure is a set of SQL commands that have been complied and stored on the database sever. They can be used in the code as and when required since hey stored. They need not be complied over and over again. They can be invoked by CALL procedure (Procedure name) or EXECUTE procedure((Procedure name)
1.Manage, control and validate data 2.It can also be used for access mechanisms 3.Large queries can be avoided 4.Reduces network traffic since they need not be recompiled 5.Even though the stored procedure itself may be a complex piece of code, we need not write it over and over again. Hence stored 6.procedures increases reusability of code Permissions can be granted for stored procedures. Hence, increases security.
|