What are the benefits of putting SQL code in stored procedure rather than embed it in a webpage?
I've thought of few but are there others? Also which is best practice and why?
Some benefits of a sproc Security Performance Re-usability
thanks
|
What are the benefits of putting SQL code in stored procedure rather than embed it in a webpage? I've thought of few but are there others? Also which is best practice and why? Some benefits of a sproc Security Performance Re-usability thanks |
|||||||
|
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.
|
It sounds like you're asking effectively the same thing as this Stack Overflow question: What are the pros and cons to keeping SQL in Stored Procs versus Code Or the one answered here: http://www.jstawski.com/archive/2007/07/09/stored-procedures-vs-in-line-sql.aspx But you could be asking about this: What are the arguments against or for putting application logic in the database layer? Because I feel like this is an answered question, and because this question is fairly well answered and an age-old debate, I'm closing this question and preventing voting on this answer. Enjoy. If you deem this question "not answered" and think it deserves an objective answer that can be fairly given, let there be a meta discussion, and comment on the Q above with a link to your meta post. (this goes for everyone, not just OP) |
|||
|
|
|||
This post has been locked while disputes about its content are being resolved. For more info visit meta. |
|||