Network Management

Rebuild and reorganize a database index manually

After running a defrag of the indexes, some users still get a message in the Web Console stating they should defrag the index manually. This article shows you how you can rebuild and reorganize your database manually.

First published date

10/25/2018 12:38 PM

Last published date

11/10/2023 3:03 PM

Overview

This guide can be used to fix tables with errors that will not defragment, such as the error shown below:
"ALTER INDEX REBUILD statement failed because the ONLINE option is not allowed when rebuilding a columnstore index. Rebuild the columnstore index without specifying the ONLINE option"

Product section

Orion Platform

Resolution

To Address the issue these would be the following steps we should do;
  1. Connect to the database using Microsoft SQL Management Studio.
  2. Expand the SolarWinds database and find the table or tables indicated in the message.
  3. Expand the table or tables and go over the indexes.
  4. Right-click the index and choose rebuild and then reorganize.
  5. After rebuilding and reorganizing, right-click the index and click Properties > Fragmentation. The total fragmentation value will be displayed.