What should you do?

You are a database developer on an instance of SQL Server 2008. You are developing a Transact-SQL script that will be used by developers. The script uses multiple DML statements, but does not use transactions. You want to ensure that each DML statement is treated as a separate transaction, but not automatically committed when executed. You must also ensure that all DML statements are explicitly committed or all are rolled back.
You want to accomplish this with minimum effort. What should you do?
A. Add the SET IMPLICIT_TRANSACTIONS ON statement.
B. Add the SET IMPLICIT_TRANSACTIONS OFF statement.
C. Set the transaction isolation level to READ COMMITTED.
D. Include a custom error-handler for each DML statement.

microsoft-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.