You need to capture execution plans that will include detailed information on missing indexes recommended by the query optimizer

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?

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?

A.
Add a HASH hint to the query.

B.
Add a LOOP hint to the query.

C.
Add a FORCESEEK hint to the query.

D.
Add an INCLUDE clause to the index.

E.
Add a FORCESCAN hint to the Attach query.

F.
Add a columnstore index to cover the query.

G.
Enable the optimize for ad hoc workloads option.

H.
Cover the unique clustered index with a columnstore index.

I.
Include a SET FORCEPLAN ON statement before you run the query.

J.
Include a SET STATISTICS PROFILE ON statement before you run the query.
K.
Include a SET STATISTICS SHOWPLAN_XML ON statement before you run the query.
L.
Include a SET TRANSACTION ISOLATION LEVEL REPEATABLE READ statement
before you run the query.
M.
Include a SET TRANSACTION ISOLATION LEVEL SNAPSHOT statement before you
run the query.
N.
Include a SET TRANSACTION ISOLATION LEVEL SERIALIZABLE statement before you
run the query.



Leave a Reply 6

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


Bhupender Singh

Bhupender Singh

Correct answer is K

Mohamed Hasan

Mohamed Hasan

Answer is K

yow yow honey singh

yow yow honey singh

Show answer button doesn’t work

MKL

MKL

Agree with all. K.

Alfredo

Alfredo

K is correct.

https://msdn.microsoft.com/en-us/library/ms187757.aspx

[…] When SET SHOWPLAN_XML is ON, SQL Server returns execution plan information for each statement without executing it, and Transact-SQL statements are not executed. After this option is set ON, execution plan information about all subsequent Transact-SQL statements is returned until the option is set OFF. […]