Application Development Guide

Advantages of Stored Procedures

Figure 3 shows how a normal database manager application accesses a database located on a database server.

Figure 3. Application Accessing a Database on a Server


Application Accessing a Database on a Server

All database access must go across the network which, in some cases, results in poor performance.

Using stored procedures allows a client application to pass control to a stored procedure on the database server. This allows the stored procedure to perform intermediate processing on the database server, without transmitting unnecessary data across the network. Only those records that are actually required at the client need to be transmitted. This can result in reduced network traffic and better overall performance. Figure 4 shows this feature.

Figure 4. Application Using a Stored Procedure


Application Using a Stored Procedure

Applications using stored procedures have the following advantages:


[ Top of Page | Previous Page | Next Page ]