exam questions

Exam 70-464 All Questions

View all questions & answers for the 70-464 exam

Exam 70-464 topic 1 question 12 discussion

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

You have a database named Database1. Database1 has two stored procedures named Proc1 and Proc2 and a table named Table1. Table1 has millions of rows.
Proc1 updates data in Table1. Proc2 reads data from Table1.
You discover that when Proc1 is executed to update more than 4,000 rows, Proc2 is blocked. The block affects all rows, including those that are not being updated by Proc1. You need to ensure that when Proc1 is executing, Proc2 can access the data in Table1 that Proc1 is not updating.
What should you change Proc1 to do?
More than one answer choice may achieve the goal. Select the BEST answer.

  • A. Update less than 4,000 rows simultaneously.
  • B. Use the PAGLOCK table hint.
  • C. Wait for Proc2 to complete.
  • D. Use the ROWLOCK table hint.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
BigBen
5 years, 6 months ago
If you were tempted to use a Rowlock hint, keep in mind that it's just an Hint. the QO will do what he wants, and will most likely ignore your hint and escalate to a pagelock or as described in the question a tablelock. Therefor, the Answer to update less than 4000 rows is still the good one.
upvoted 3 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 ...