What is the primary benefit of using a stored procedure in a database application?
-
A
It stores data more efficiently than regular tables
-
B
It encapsulates SQL logic on the server, reducing network traffic
-
C
It automatically indexes all referenced columns
-
D
It prevents any SQL injection by design