Error in Index Reorg in Maintenance Task

  • Getting following error in Reorganize Index user DB Maintenance Task.

    Error number: -1073548784

    Executing the query "ALTER INDEX [REGAB_ACCOUNT_IX] ON [dbo].[RMARTRPT_DLY_REGAB_ACCOUNT_RPT] REORGANIZE WITH ( LOB_COMPACTION = ON )

    " failed with the following error: "Cannot perform the specified operation on disabled index 'REGAB_ACCOUNT_IX' on table 'dbo.RMARTRPT_DLY_REGAB_ACCOUNT_RPT'.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

    what are the possible solutions to troubleshoot.

  • Re-enable, drop, or skip that index.

  • How do I skip it from the daily maintenance job?

    I don't see enable option on the index. should i drop and recreate the index.

  • As the error message states that particular index is disabled. Rebuild it manually to enable it or drop it if that index is not required.

    Pradeep Adiga
    Blog: sqldbadiaries.com
    Twitter: @pradeepadiga

  • To re-enable a disabled index, you have to rebuild it using ALTER INDEX REBUILD etc, or just drop it completely (DROP INDEX tablename.indexname)

    The reason for needing to rebuild it is because while it's disabled, the engine doesn't use it at all, so there are no data updates to it. Really the only reason to disable an index at all is so you can keep the schema in tact, and recreate it easily later if needed.

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply