Advantages of Stored Procedures
Using stored procedures provides many advantages over executing large and complex SQL batches from client applications:
Modular programming—Subroutines and functions are often used in ordinary 3GL and 4GL languages (such as C, C++, and Microsoft Visual Basic) to break up code into smaller, more manageable pieces. The same advantages are achieved when using stored procedures, with the difference that the stored procedure is stored in SQL Server and can be called by any client application.
Restricted, function-based access to tables—Someone can have access to execute a stored procedure without having permissions to operate directly on the underlying tables.
Reduced network traffic—Stored procedures can consist of many ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access