exam questions

Exam 70-461 All Questions

View all questions & answers for the 70-461 exam

Exam 70-461 topic 1 question 168 discussion

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

You have a Microsoft SQL Server database. You create tables by running the following Transact-SQL statements:

You need to create a stored procedure that meets the following requirements:
✑ Creates orders based on a customer's email address.
✑ Creates the order entry, and then adds the customer relationship.
✑ If any step fails during the process, all changes are reserved.
Which Transact-SQL statement should you run?
A.

B.

C.

D.

Show Suggested Answer Hide Answer
Suggested Answer: D

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
Nickforguest
4 years, 5 months ago
Why not A? And D will raise the 'The COMMIT TRANSACTION request has no corresponding BEGIN TRANSACTION.' ERROR. There is only one transaction opened inside procedure.
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 ...