Which action should you take?

You are a database developer on an instance of SQL Server 2008. You are creating a stored procedure that implements transactions. Your stored procedure will be used by a production application to request supplies from inventory.
The application will allow users on the plant floor to query the parts available in the database from the Product table. Then, the application will allow the user to select the product and the quantity of that product that should be delivered to the user’s station. When the inventory request is finalized by clicking the Save button in the application, the request is added as an internal pick order to be processed in the warehouse.
After a user clicks the Save button and the user is in the process of finalizing a request, no other users, internal or external, should be able to make requests on the same product. You want to accomplish this with minimal locking.
Which action should you take?
A. Configure the application to use a transaction isolation level of REPEATABLE READ.
B. Specify the TABLOCKX table hint when initially querying the Product table.
C. Issue the SET XACT_ABORT ON statement at the beginning of the application.
D. Set the ALLOW_SNAPSHOT_ISOLATION database option to OFF.

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.