Microsoft
70-583 · Question #10
A Windows Azure application stores data in a SQL Azure database. The application will start an operation that includes three insert statements. You need to recommend an approach for rolling back the…
The correct answer is A. Ensure that all statements execute in the same database transaction. See the full explanation below for the reasoning.
Question
A Windows Azure application stores data in a SQL Azure database. The application will start an operation that includes three insert statements. You need to recommend an approach for rolling back the entire operation if the connection to SQL Azure is lost. What should you recommend?
Options
- AEnsure that all statements execute in the same database transaction.
- BCreate a stored procedure in the database that wraps the insert statements in a TRY CATCH
- CCreate a stored procedure in the database that wraps the insert statements in a TRANSACTION
- DOpen a new connection to the database.
How the community answered
(28 responses)- A79% (22)
- B7% (2)
- C11% (3)
- D4% (1)
Community Discussion
No community discussion yet for this question.