Google News
logo
SQL Server - Quiz(MCQ)
Which of the stored procedure used for dynamic SQL is prone to attacks?
A)
executesql
B)
sp_execute
C)
sp_executesql
D)
xp_executesql

Correct Answer :   sp_executesql


Explanation : sp_executesql executes a Transact-SQL statement or batch that can be reused many times or one that has been built dynamically. Run time-compiled Transact-SQL statements can expose applications to malicious attacks.

Advertisement