nerdexam
Microsoft

70-457 · Question #14

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…

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
  • BALTER INDEX NCI_OrderDetail_CustomerID ON OrderDetail.CustomerID REORGANIZE
  • CALTER INDEX ALL ON OrderDetail REBUILD
  • DALTER INDEX NCI_OrderDetail_CustomerID ON OrderDetail.CustomerID REBUILD

How the community answered

(21 responses)
  • A
    14% (3)
  • B
    76% (16)
  • C
    5% (1)
  • D
    5% (1)

Community Discussion

No community discussion yet for this question.

Full 70-457 Practice