Developing Microsoft SQL Server Databases — Question 47

Developers report that usp_UpdateOffice periodically returns error 3960.
You need to prevent the error from occurring. The solution must ensure that the stored procedure return the original values to all of the updated rows.
What should you configure in StoredProcedures.sql?

Answer options

Correct answer: C

Explanation

The correct answer is C because moving the SELECT statement to line 50 ensures that the original values are returned after the updates are made, which helps avoid the error. Options A, B, and D do not address the need to return the original values effectively and may not resolve the error 3960 as required.