There are several advantages to using stored procedures; here are a few of them:
- They allow business rules and policies to be encapsulated and changed in one place.
- They allow sharing of application logic by different applications.
- They can facilitate data modification, ensuring that all applications update data consistently.
- They can simplify parameterized queries, easily facilitating running the same query repetitively with different sets of parameters.
- Autostart procedures can automate startup routines, executing each time the server is cycled.
- They can modularize an application, organizing it into manageable pieces.
- They can provide security mechanisms, allowing users controlled access to database objects they could not otherwise use.
- They can reduce network bandwidth use by greatly lessening the amount of Transact-SQL code that must traverse the network in order to accomplish tasks.
- Since their execution plans are retained by the server for reuse, they can improve application performance considerably.
0 comments:
Post a Comment