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?
Anette
Highly Voted 4 years, 10 months agoMML
4 years, 10 months agostm22
Highly Voted 4 years, 9 months agoBacky
Most Recent 4 years, 5 months agoLuzix
4 years, 5 months agoAlex5x
4 years, 6 months agoAlex5x
4 years, 6 months agoAlex5x
4 years, 6 months agoOooo
4 years, 6 months agoAngelcr
4 years, 7 months agoCococo
4 years, 7 months agokiri2020
4 years, 5 months agoraja1234567890
4 years, 11 months agoJohnFan
5 years, 1 month agoBartek
5 years, 3 months agoTwigit
5 years, 2 months agoJohnFan
5 years, 1 month ago