Which of the following is a disadvantage of dynamic SQL?

Khang Lê

New member
Which of the following is a disadvantage of dynamic SQL?
A. Stored procedure can not cache the execution plan for this dynamic query
B. Stored procedure can cache the execution plan for this dynamic query
C. Flexibility in your code that you can not get with standard SQL
D. All of the mentioned
 
Answer: a
Explanation: Stored procedure can not cache the execution plan for this dynamic query. So, for complex queries you will lose the performance boost that you usually gain with stored procedures.
 

Tìm kiếm

Back
Top