Which contains many rows:

You have a Prod database on an instance of SQL Server 2008. Your Prod database contains the following table, PurchaseOrderHistory, which contains many rows:


You have two stored procedures that have the following characteristics:
StoredProc1 has a default isolation level and issues multiple DML statements that perform modifications to the PurchaseOrderHistory table.
StoredProc2 has a default isolation level and issues a SELECT query to return all rows in the PurchaseOrderHistory table.
You want to ensure that StoredProc2 uses row versioning and retrieves the last committed version of each row. Which action should you take?
A. Set the transaction isolation level of StoredProc1 to SERIALIZABLE.
B. Include the NOLOCK table hint for the query in StoredProc2.
C. Set the ALLOW_SNAPSHOT_ISOLATION database option to OFF.
D. Set the READ_COMMITTED_SNAPSHOT database option to ON.

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.