exam questions

Exam 70-764 All Questions

View all questions & answers for the 70-764 exam

Exam 70-764 topic 1 question 247 discussion

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

You use SQL Server 2014 to maintain the data used by applications at your company.
You want to execute two statements.
You need to guarantee that either both statements succeed, or both statements fail together as a batch.
Which code should you use?

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D
  • E. Option E
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
Structure should be:

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
dxico
4 years, 5 months ago
It is D.
upvoted 1 times
...
vescafi
4 years, 6 months ago
The D question is not completed.
upvoted 2 times
...
TheSwedishGuy
5 years, 4 months ago
I like answer C
upvoted 2 times
Iva10
5 years ago
Answer is D, because it is new way of handling errros. Option D. Begin try Begin transaction Insert table1 (field1) values ('one') Insert table2 (field1) values ('two') commit transaction end try begin catch rollback transaction end catch
upvoted 1 times
...
...
Spicy2312
5 years, 10 months ago
This question is not completed.
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 ...