Administering Microsoft SQL Server 2012/2014 Databases — Question 7

You are developing a database application by using Microsoft SQL Server 2012. You have a query that runs slower than expected.
You need to capture execution plans that will include detailed information on missing indexes recommended by the query optimizer.
What should you do?

Answer options

Correct answer:

Explanation

The correct answer is K, as including a SET STATISTICS SHOWPLAN_XML ON statement will allow you to retrieve the execution plans in XML format, which includes detailed information on missing indexes recommended by the query optimizer. The other options either relate to query hints or transaction isolation levels, which do not provide execution plan details.