Which action should you take?

You maintain a database named Manufacturing on an instance of SQL Server 2008.
You have created a stored procedure named usp_WorkOrderUpdate that is frequently used to update the status of work orders as they are completed. The usp_WorkOrderUpdate stored procedure performs related updates to several tables in the database when a work order is marked as complete. You have used transactions within the procedure to ensure that all table updates are successful.
You need to issue a query against the WorkOrderHistory table, which is one of the tables updated in the usp_WorkOrderUpdate stored procedure. You want your query to execute as quickly as possible, ignoring any locks that the usp_WorkOrderUpdate procedure has acquired, and reading all rows even if they contain uncommitted data.
Which action should you take?
A. Include the NOLOCK table hint in your query.
B. Include the READPAST table hint in your query.
C. Modify the transaction isolation level for usp_WorkOrderUpdate.
D. Set LOCK_TIMEOUT to 0 before executing your query.

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.