Which of the stored procedure used for dynamic SQL is prone to attacks?
(a) xp_executesql
(b) executesql
(c) sp_execute
(d) sp_executesql
I had been asked this question during an internship interview.
Enquiry is from Dynamic SQL in section Developing with SQL Server of SQL Server