SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Error in Index Reorg in Maintenance Task


Error in Index Reorg in Maintenance Task

Author
Message
anzz
anzz
SSC-Addicted
SSC-Addicted (495 reputation)SSC-Addicted (495 reputation)SSC-Addicted (495 reputation)SSC-Addicted (495 reputation)SSC-Addicted (495 reputation)SSC-Addicted (495 reputation)SSC-Addicted (495 reputation)SSC-Addicted (495 reputation)

Group: General Forum Members
Points: 495 Visits: 699
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.
Derrick Smith
Derrick Smith
SSC Eights!
SSC Eights! (954 reputation)SSC Eights! (954 reputation)SSC Eights! (954 reputation)SSC Eights! (954 reputation)SSC Eights! (954 reputation)SSC Eights! (954 reputation)SSC Eights! (954 reputation)SSC Eights! (954 reputation)

Group: General Forum Members
Points: 954 Visits: 715
Re-enable, drop, or skip that index.
anzz
anzz
SSC-Addicted
SSC-Addicted (495 reputation)SSC-Addicted (495 reputation)SSC-Addicted (495 reputation)SSC-Addicted (495 reputation)SSC-Addicted (495 reputation)SSC-Addicted (495 reputation)SSC-Addicted (495 reputation)SSC-Addicted (495 reputation)

Group: General Forum Members
Points: 495 Visits: 699
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.
Adiga
Adiga
SSCrazy
SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)

Group: General Forum Members
Points: 2800 Visits: 21012
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
Derrick Smith
Derrick Smith
SSC Eights!
SSC Eights! (954 reputation)SSC Eights! (954 reputation)SSC Eights! (954 reputation)SSC Eights! (954 reputation)SSC Eights! (954 reputation)SSC Eights! (954 reputation)SSC Eights! (954 reputation)SSC Eights! (954 reputation)

Group: General Forum Members
Points: 954 Visits: 715
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.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search