A database administrator wants to move a heavily accessed table to a different physical storage tier to improve performance. In SQL Server, what is the best way to move the table data while retaining the clustered index?
Trap 1: Use the Move-Item cmdlet
This is a filesystem command, not a database administration command.
Trap 2: Shrink the database
Shrinking does not move specific tables to new storage tiers.
Trap 3: Disable the index
Disabling the index does not change physical storage location.
- A
Use the Move-Item cmdlet
Why it fails: This is a filesystem command, not a database administration command.
- B
Shrink the database
Why it fails: Shrinking does not move specific tables to new storage tiers.
- C
DROP and RECREATE index on a new filegroup
Moving the clustered index to a different filegroup physically moves the base table data.
- D
Disable the index
Why it fails: Disabling the index does not change physical storage location.