Difficulty: Easy
Correct Answer: Incorrect
Explanation:
Introduction / Context:
Stored procedures encapsulate SQL logic on the database server. They improve performance, security, and maintainability by centralizing code and reducing chattiness between client and server. The prompt suggests that a benefit is the ability to distribute procedures to clients, which tests understanding of where stored procedures live and execute.
Given Data / Assumptions:
Concept / Approach:
The principal advantages of stored procedures include centralized logic, reduced network round-trips (one call versus many statements), shared security context, plan reuse, and version control on the server. Distribution to clients is not a benefit; in fact, one reason to use procedures is to avoid scattering SQL across clients. Client distribution applies to application binaries or libraries, not to stored procedures themselves.
Step-by-Step Solution:
Verification / Alternative check:
Deploy a procedure and update it centrally; all clients pick up changes immediately without redistribution—evidence that procedures are not distributed to clients for execution.
Why Other Options Are Wrong:
Common Pitfalls:
Confusing ORMs or embedded SQL libraries with stored procedures; assuming code distribution models apply to server-resident database logic.
Final Answer:
Incorrect
Discussion & Comments