database - Does stored procedure help eliminates SQL injection / What are the benefits of stored procedured over normal SQL statement in apps? -
I am very new in SQL world Here are my questions:
- Applications include the usual SQL What are the benefits of the above stored procedures?
- Does Archived Process Assistance End SQL Injection?
- In Microsoft SQL Server it is called stored procedure. How about Oracle, MySQL, DB2 etc?
Thank you for your explanation.
The stored procedures should only prevent directly SQL injection if you want them If you still have the name of the process with your app, and you have consolidated criteria of that string in your code from user input, you still have trouble.
However, when < Em> Exclusively, you add some additional security to the stored procedure This can make it possible for you to disable permissions for all but EXEC orders In addition, the query / prepared statements with parameters are usually cached by the server, and in almost every case, just like a stored procedure Are there.
Despite this, there are two major advantages for large enterprises of stored procedures:
- They allow you to define an application interface for the database, so that In those applications the system is shared among many applications without duplicating the reasoning.
- They transfer SQL to DB, where you can easily maintain an experienced DBA tune, update, and otherwise retain it, instead the application developers
Of course These advantages are of no cost:
- It is difficult
- code is separated from code
- Several stored procedures Developer tools for management are less than ideal (if you are ever open database lost 200 processes Stored in the Management Studio Procedures folder, I am talking to you know what I talking about here).
Comments
Post a Comment