nerdexam
Microsoft

70-451 · Question #27

70-451 Question #27: Real Exam Question with Answer & Explanation

Sign in or unlock 70-451 to reveal the answer and full explanation for question #27. The question stem and answer options stay visible for context.

Question

You are a database developer. You develop solutions by using SQL Server 2008 in an enterprise environment. An application contains two stored procedures. The tasks performed by the stored procedures are as shown in the following table. You discover that the procedures occasionally throw foreign key violation errors. IncludeDetails throws an error when it inserts records into the ProductInfo table. ImportNewProducts throws an error when it inserts records into the ProductCurrentPrice table. If an error occurs in the INSERT statement of ProductInfo, records inserted into ProductHeader and ProductCurrentPrice are committed. If an error occurs in the INSERT statement of ProductCurrentPrice, all transactions are rolled back. What should you do?

Exhibit

70-451 question #27 exhibit

Options

  • A
    1. Add a SET XACT_ABORT OFF statement in IncludeDetails.
  • B
    1. Add a SET XACT_ABORT ON statement in IncludeDetails.
  • C
    1. Enclose all statements of IncludeDetails in a TRY/CATCH block.
  • D
    1. Enclose all statements of ImportNewProducts in a TRY/CATCH block.

Unlock 70-451 to see the answer

You've previewed enough free 70-451 questions. Unlock 70-451 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 70-451 Practice