You use a Microsoft SQL Server 2012 database that contains two tables named
SalesOrderHeader and SalesOrderDetail. The indexes on the tables are as shown in the exhibit. (Click the Exhibit button.)
You write the following Transact-SQL query:
You discover that the performance of the query is slow. Analysis of the query plan shows
table scans where the estimated rows do not match the actual rows for SalesOrderHeader
by using an unexpected index on SalesOrderDetail.
You need to improve the performance of the query.
What should you do?

A.
Use a FORCESCAN hint in the query.
B.
Add a clustered index on SalesOrderId in SalesOrderHeader.
C.
Use a FORCESEEK hint in the query.
D.
Update statistics on SalesOrderId on both tables.
Explanation:
References:
http://msdn.microsoft.com/en-us/library/ms187348.aspx
The FORCESEEK hint in a query forces the Query Optimizer to perform an index seek instead of a full table scan. However, if the optimizer is already “using an unexpected index on SalesOrderDetail”, while the “estimated rows do not match the actual rows for SalesOrderHeader”, then Option C will not achieve much difference. One needs to ‘update statistics for SalesOrderID column’ on both tables (Option D).
0
0
Phew!! Option C is actually right. The question says that “Analysis of the query plan shows table scans…”
0
0
Definatly D cause the index is already broken. FORCESEEK would only search the broken index. So you have to update it!
0
0
The time to study or pay a visit to the content material or web sites we’ve linked to beneath.
0
0
the time to read or visit the subject material or web-sites we have linked to below the
0
0
although sites we backlink to below are considerably not connected to ours, we feel they are truly really worth a go as a result of, so possess a look
0
0
check below, are some totally unrelated web sites to ours, on the other hand, they are most trustworthy sources that we use
0
0
check beneath, are some absolutely unrelated web sites to ours, even so, they may be most trustworthy sources that we use
0
0
the time to read or go to the content material or web-sites we have linked to beneath the
0
0
the time to read or visit the content material or web-sites we’ve linked to below the
0
0
D. https://docs.microsoft.com/en-us/sql/t-sql/statements/update-statistics-transact-sql
0
0
Besides, part of new Microsoft 200Q 70-461 dumps are available here:
https://drive.google.com/open?id=0B-ob6L_QjGLpfnJldlZxTklTaHM0akpJUzhja2pETHJOS0owMzd4eVk1UTVNQUpvdlVxVWM
Best Regards!
0
0