DRAG DROP
You are planning to deploy a database to Windows Azure SQL Database.
You need to design a stored procedure to update rows. The stored procedure must meet the following requirements:
If more than one row is updated, an error must be raised to the application and the update must be

discarded.
The stored procedure must be designed to maximize concurrency.

What should you include in the design? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.
Select and Place:

Correct Answer:

Explanation/Reference:
Explanation:
Note:
- Read Committed is SQL Server's default isolation level.
- @@ROWCOUNT eturns the number of rows affected by the last statement.
- Using TRY...CATCH in a transaction
The following example shows how a TRY...CATCH block works inside a transaction.
The statement inside the TRY block generates a constraint violation error.

- Generate a constraint violation error.
