What should you do to minimize the likelihood of SQL injection attacks?

You are a database developer on an instance of SQL Server 2008. Your Prod database contains tables that contain purchasing-related data. The database contains the following tables:


You need to create queries against the tables that use dynamic SQL. Your IT management has recently implemented security policies mandating that all Transact-SQL code must minimize the likelihood of SQL injection attacks.
What should you do to minimize the likelihood of SQL injection attacks?
A. Use the EXECUTE statement to execute dynamic SQL.
B. Implement all dynamic SQL using CLR functions and procedures.
C. Implement all dynamic SQL within Transact-SQL stored procedures.
D. Use the sp_executesql system stored procedure to execute dynamic SQL.

microsoft-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.