nerdexam
Microsoft

70-457 · Question #51

You are writing a set of queries against a FILESTREAM-enabled database. You create a stored procedure that will update multiple tables within a transaction. You need to ensure that if the stored…

The correct answer is E. SET XACT_ABORT ON. See the full explanation below for the reasoning.

Question

You are writing a set of queries against a FILESTREAM-enabled database. You create a stored procedure that will update multiple tables within a transaction. You need to ensure that if the stored procedure raises a run-time error, the entire transaction is terminated and rolled back. Which Transact-SQL statement should you include at the beginning of the stored procedure?

Options

  • ASET TRANSACTION ISOLATION LEVEL SERIALIZABLE
  • BSET XACT_ABORT OFF
  • CSET TRANSACTION ISOLATION LEVEL SNAPSHOT
  • DSET IMPLICIT_TRANSACTIONS ON
  • ESET XACT_ABORT ON
  • FSET IMPLICIT TRANSACTIONS OFF

How the community answered

(31 responses)
  • A
    3% (1)
  • B
    6% (2)
  • C
    10% (3)
  • E
    81% (25)

Community Discussion

No community discussion yet for this question.

Full 70-457 Practice