Stored Procedure

A stored procedure refers to a collection of SQL commands that have been compiled and stored in the database server. SQL (Structured Query Language) is a language used to define and manipulate data from a database.

A stored procedure mainly serves client applications. Once the SQL commands making up the stored procedure have been saved, the client applications may utilize the stored procedure multiple times. The applications can do this without having to send the stored procedure back to the database server. Also, the applications do not have to compile the stored procedure again after each use.

Stored procedures allow client programs to use variables in performing commands. These variables are then utilized and/or modified by stored procedures to give more exact results.

Several network processes make use of stored procedures. Work stations use stored procedures in validating data. Client applications use commands contained in stored procedures to make sure that the data they receive is accurate and correct. Client programs also use the commands in a stored procedure to set the degree of access being given to other devices in the network.

Stored procedures present a number of benefits to the network. Since client applications within work stations have to access the stored procedure only once, network traffic is lessened. This results to improved network flow and availability of resources. Stored procedures also contribute in minimizing the CPU load of client stations because it does not require much activity and processor resources within the work station. Stored procedures can be implemented in a number of programming languages such as Java, C, and C++.

Additional Reading on Stored Procedures