exam questions

Exam 70-464 All Questions

View all questions & answers for the 70-464 exam

Exam 70-464 topic 7 question 8 discussion

Actual exam question from Microsoft's 70-464
Question #: 8
Topic #: 7
[All 70-464 Questions]

You need to ensure that a new execution plan is used by usp_GetOrdersByProduct each time the stored procedure runs.
What should you do?

  • A. Execute sp_help usp_GetOrdersByProduct\
  • B. Add WITH (FORCESEEK) to line 69 in usp.GetOrdersByProduct.
  • C. Add WITH RECOMPILE to line 64 in usp.GetOrdersByProduct.
  • D. Execute sp_recompile usp.GetOrdersByProduct'.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Luzix
4 years, 7 months ago
FORCESEEK: Specifies that the query optimizer uses only an index lookup operation as the path to data in the table or view. When you create a stored procedure using the WITH RECOMPILE option, it gets a brand new execution plan every time it runs.
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...