nerdexam
Microsoft

70-458 · Question #56

70-458 Question #56: Real Exam Question with Answer & Explanation

The correct answer is B. ALTER INDEX NCI_OrderDetail_CustomerID ON OrderDetail.CustomerID REORGANIZE. See the full explanation below for the reasoning.

Question

You administer a Microsoft SQL Server 2012 database that contains a table named OrderDetail. You discover that the NCI_OrderDetail_CustomerID non-clustered index is fragmented. You need to reduce fragmentation. You need to achieve this goal without taking the index offline. Which Transact-SQL batch should you use?

Options

  • ACREATE INDEX NCI_OrderDetail_CustomerID ON OrderDetail.CustomerID WITH DROP EXISTING
  • BALTER INDEX NCI_OrderDetail_CustomerID ON OrderDetail.CustomerID REORGANIZE
  • CALTER INDEX ALL ON OrderDetail REBUILD
  • DALTER INDEX NCI_OrderDetail_CustomerID ON OrderDetail.CustomerID REBUILD

Community Discussion

No community discussion yet for this question.

Full 70-458 Practice