exam questions

Exam 70-465 All Questions

View all questions & answers for the 70-465 exam

Exam 70-465 topic 1 question 35 discussion

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

You are building a stored procedure for a Windows Azure SQL Database. The procedure will add multiple rows to a table.
You need to design the stored procedure to meet the following requirements:
If any of the new rows violates a table constraint, then no further additions must be attempted and all changes made by the stored procedure must be discarded.
If any errors occur, a row must be added to an audit table, and the original error must be returned to the caller of the stored procedure.
What should you include in the design?

  • A. An explicit transaction that has XACT_ABORT disabled
  • B. An implicit transaction that has error handling enabled
  • C. An explicit transaction that has error handling enabled
  • D. An implicit transaction that has XACT.ABORT enabled
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️
Reference:
http://technet.microsoft.com/en-us/library/ms175127(v=SQL.105).aspx

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
McFlyBR
4 years, 5 months ago
B and C are identical?!
upvoted 1 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 ...