Would like to get a list of advantages and disadvantages of using Stored Procedures. The main advantage of SPs seems to be precompiled and an abstraction of data from the application. Give me your thoughts….
Would like to get a list of advantages and disadvantages of using Stored Procedures.
Share
Correction: Whether they’re precompiled depends on the database. In SQL Server, for instance, they’re not. Stored procedures and parameterized SQL are both compiled before being run. A stored procedure can sometimes reuse an execution plan if a corresponding one exists…but so can parameterized SQL.
Edit: Here’s what MSDN says about it: