nerdexam
Microsoft

70-451 · Question #124

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…

The correct answer is C. Run the following Transact-SQL statement. See the full explanation below for the reasoning.

Question

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?

Options

  • AModify the usp_Update stored procedure to use the NOLOCK table hint for the UPDATE
  • BModify the usp_Update stored procedure to use the SERIALIZABLE table hint for the
  • CRun the following Transact-SQL statement.
  • DRun the following Transact-SQL statement.

How the community answered

(34 responses)
  • A
    9% (3)
  • B
    15% (5)
  • C
    74% (25)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 70-451 Practice