Which action should you take?

You manage a database in an instance of SQL Server 2008. You want to allow users to execute a given query providing different WHERE clause values. You want the solution to provide the best performance possible, but also provide maximum security. Which action should you take?
A. Use string concatenation to build the query string and then issue the EXECUTE statement, passing it the string.
B. Use a Common Table Expression (CTE).
C. Create a parameterized stored procedure that uses sp_executesql.
D. Create a stored procedure that includes the WITH RECOMPILE clause to execute the query.

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.