nerdexam
Microsoft

70-457 · Question #48

You use Microsoft SQL Server 2012 to create a stored procedure as shown in the following code segment. (Line numbers are included for reference only.) The procedure can be called within other…

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

Question

You use Microsoft SQL Server 2012 to create a stored procedure as shown in the following code segment. (Line numbers are included for reference only.) The procedure can be called within other transactions. You need to ensure that when the DELETE statement from the HumanResourcesJobCandidate table succeeds, the modification is retained even if the insert into the Audit.Log table fails. Which code segment should you add to line 14?

Exhibit

70-457 question #48 exhibit

Options

  • AIF @@TRANCOUNT = 0
  • BIF (XACT_STATE ( ) ) = 0
  • CIF (XACT_STATE ( ) ) = 1
  • DIF @@TRANCOUNT = l

Unlock 70-457 to see the answer

You've previewed enough free 70-457 questions. Unlock 70-457 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-457 Practice