What should you recommend?

Correct Answer for the following Question is given below

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?Use a separate transaction scope to roll back the original operation.

Question:

What should you recommend?

Options:

Ensure that all statements execute in the same database transaction.

Create a stored procedure in the database that wraps the insert statements in a TRY CATCH block.

Create a stored procedure in the database that wraps the insert statements in a TRANSACTION block.

Open a new connection to the database.

Correct Answer

The Correct Answer for this Question is

Ensure that all statements execute in the same database transaction.

Explanation

The Question – What should you recommend? has been answered correctly and answers for the question is Ensure that all statements execute in the same database transaction.

More about these Exams

These Exam Questions and the order of these questions keep changing. but the answers are obviously same. so if you don’t find a question after another we suggest you search it in the search box and we are sure you’ll find it. you can bookmark this site for Quick access in future.

We hope you found it helpful don’t forget to leave a comment if you feel a need to correct or ask we’re always here to help.

you can find more here at mnccertified

Feel free to contact via comment or email.

Happy Learning

Cheers, Team MNCcertified

Leave a Comment