You are a database developer. You develop a database by using SQL Server 2008 in an
enterprise environment. The database has a table named Sales.Inventory. The table is
partitioned into four geographic regions. You update the Sales.Inventory table for each
region by using the following stored procedure. CREATE STORED PROCEDURE
usp_Update @RegionID tinyint AS UPDATE Sales.Inventory SET Qty = T.CurrentQuantity
FROM Sales.Inventory I JOIN Sales.TempData T ON I.ItemID = T.ItemID AND I.RegionID =
@RegionID; The UPDATE statement locks the Sales.Inventory table when a single region
is updated. You need to prevent the locking of the Sales.Inventory table when a single
region is updated. What should you do?
A.
Modify the usp_Update stored procedure to use the NOLOCK table hint for the UPDATE
statement.
B.
Modify the usp_Update stored procedure to use the SERIALIZABLE table hint for the
UPDATE statement.
C.
Run the following Transact-SQL statement. ALTER TABLE Sales.Inventory SET
LOCK_ESCALATION = AUTO
D.
Run the following Transact-SQL statement. ALTER TABLE Sales.Inventory SET
LOCK_ESCALATION = TABLE
Explanation: