Cec005-Cec41s4 SQL3 Manapao
Cec005-Cec41s4 SQL3 Manapao
Quiz Result
Wrong/Skipped
Right Answer
1. Which of the following SQL statements is used to modify an existing stored procedure?
Description : The ALTER PROCEDURE statement in SQL serves the purpose of modifying the definition or
structure of an already existing stored procedure. It enables changes to the stored procedure's logic,
parameters, or other attributes without the need for dropping and recreating the procedure.
Page 1 of 2
2. What is a stored procedure in SQL?
Description : A stored procedure is a precompiled collection of SQL statements stored as a named object
in a database. It allows executing multiple SQL statements as a single unit, enhancing reusability and
performance.
3. How does a stored procedure improve performance upon its first use?
Description : Upon first use, a stored procedure generates an execution plan, optimizing its processing for
subsequent executions. This plan enhances performance by efficiently executing the stored logic.
4. The server passes the procedure name and the whole query.
Description : Stored procedures are precompiled and stored in the database. When executing a stored
procedure, the sdoesn't pass the whole query; instead, it runs the precompiled procedure based on its
name and parameters.
Description : Stored procedures provide benefits like reusability, easy modification, and reduced network
traffic. However, they don't offer direct access to tables; instead, they encapsulate SQL logic for controlled
execution.
Page 2 of 2