PrepAway - Latest Free Exam Questions & Answers

Note: This question is part of a series of questions that present the same scenario. Each question in the seri

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution.

Determine whether the solution meets the stated goals.

You need to create a stored procedure that updates the Customer, CustomerInfo, OrderHeader, and OrderDetails tables in order.

You need to ensure that the stored procedure:

Runs within a single transaction.

Commits updates to the Customer and CustomerInfo tables regardless of the status of updates to the OrderHeader and OrderDetail tables.

Commits changes to all four tables when updates to all four tables are successful.

Solution: You create a stored procedure that includes the following Transact-SQL segment:



Does the solution meet the goal?

A. Yes

B. No

Explanation:

References: http://stackoverflow.com/questions/11444923/stored-procedure-to-update-multiple-tables

2 Comments on “Note: This question is part of a series of questions that present the same scenario. Each question in the seri

  1. fnmag21 says:

    i can see 2 questions here.
    1) Commits updates to the Customer and CustomerInfo tables regardless of the status of updates to the OrderHeader and OrderDetail tables. Answer A

    2) Commits changes to all four tables when updates to all four tables are successful. answer B




    0



    1

Leave a Reply