Advantages and disadvantages of store procedure
Loading
Advantages and disadvantages of store procedure
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Tuhin PaulPosted Mar 2, 2023, 7:15 PM
Advantages:
Disadvantages:
Vishal YelvePosted Mar 2, 2023, 1:59 PM
Advantages :
The main advantages of stored procedure are:
The procedure calls are quick and efficient as stored procedures are compiled once and stored in executable form.Hence the response is quick. The executable code is automatically cached, hence lowers the memory requirements.
Since the same piece of code is used again and again so, it results in higher productivity.
To create a stored procedure, one can use any Java Integrated Development Environment (IDE). Then, they can be deployed on any tier of network architecture.
Stored procedures increase scalability by isolating application processing on the server.
Maintaining a procedure on a server is much easier then maintaining copies on various client machines, this is because scripts are in one location.
Access to the Oracle data can be restricted by allowing users to manipulate the data only through stored procedures that execute with their definer’s privileges.
Disadvantages :
The main disadvantages of stored procedures are:
Testing of a logic which is encapsulated inside a stored procedure is very difficult. Any data errors in handling stored procedures are not generated until runtime.
Depending on the database technology, debugging stored procedures will either be very difficult or not possible at all. Some relational databases such as SQL Server have some debugging capabilities.
Version control is not supported by the stored procedure.
An extra developer in the form of DBA is required to access the SQL and write a better stored procedure. This will automatically incur added cost.
Complex stored procedures will not always port to upgraded versions of the same database. This is specially true in case of moving from one database type(Oracle) to another database type(MS SQL Server).
Rajeev KumarPosted Mar 2, 2023, 1:47 PM
Pros:
Cons:
Aradhana TripathiPosted Feb 9, 2023, 5:15 PM
Below are the advantages and disadvantages of stored procedure:
Advantages of store procedure:
Precompiled execution
Reduced client/server traffic
Efficient reuse of code and programming abstraction
Enhanced security controls
Disadvantages of store procedure:
Limited Coding Functionality
Portability
Difficult to Debug.
Not easy to Develop and Maintain
Aravind GovindarajPosted Nov 27, 2022, 10:08 AM
SP Advantages:
Disadvantages: