Advantages of using stored procedures

  1. Prevent SQL injection
  2. If the change or bug is in SP, just fix the SP and release it
  3. Reduce bandwidth consumption
  4. Monitor performance by viewing execution history like execution count, last execution time and total elapsed time
  5. Can stop SP if it takes too long or is consuming too much CPU or RAM
  6. Permission control using roles
  7. Can view SP execution plan and make it better
  8. Transactions
  9. Reduce duplication and enable re-use
  10. Better performance due to cache

Share this Post