Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

Why to use stored procedure in database ?

user-image
Question ajoutée par Muhammad Rizwan
Date de publication: 2016/12/02
Ashraf Tahainah
par Ashraf Tahainah , Sr. IT Project Manager, Delivery Lead , Khalifa Fund for Enterprise Developmen

1- Declare it once , use it many.

2- encapsulation , adding layer of security that can be placed on the database from the calling application.

3- the data functionality is separated from the application making it easier to manage, document, and maintain.

4- Improve performance .

mohammed ali
par mohammed ali , System Developer , Millstone

I think it's reduce a performance and speed instead of writing a complicated query using code 

Ahmad Yaseen
par Ahmad Yaseen , Stores Manager , Drake & Scull International - Saudi Arabia

  • Because scripts are in one location, updates and tracking of dependencies based on schema changes becomes easier and can be tested independent of the application.
  • Having Stored Procedures in one location means that there’s no confusion of having business rules spread over potentially disparate code files in the application, and also stored procedures are cached on the server.
  • Execution plans for the process are easily reviewable without having to run the application
  •  Limit direct access to tables via defined roles in the database
  • Provide an “interface” to the underlying data structure so that all implementation and even the data itself is shielded.

 

More Questions Like This