Solved

I have a corrupted index on a table with this error Index row entry for data row id (817, 15) is missing from index page 1009 of index id 2 of table 'sysattributes' in database 'sag'. Xactid is (10215

Posted on 2014-12-17
3
336 Views
Last Modified: 2014-12-24
I was deleting from a table and mistakenly executed the delete statement twice which caused the error.
0
Comment
Question by:Kola Lawal
  • 2
3 Comments
 
LVL 24

Expert Comment

by:Joe Woodhouse
ID: 40506299
Firstly executing the same DELETE twice is very unlikely to have caused your issue. If the first DELETE succeeded and committed then the second should find no rows affected and nothing to DELETE. I think it's just coincidence - you likely have some other issue that happened around the same time.

Is there anything in the ASE errorlog?

The error message is telling you there is data in a table which isn't shown in the index. That's the good news - your data itself is intact.

Simply drop & recreate the index. This will block writes while the index is being recreated, and reads will be slower if they needed the index but now are table scanning.
0
 

Author Comment

by:Kola Lawal
ID: 40508891
I have already drop and recreated the indexes except one which I couldn't get to generate DDL so to recreate it. Please what can I do?
0
 
LVL 24

Accepted Solution

by:
Joe Woodhouse earned 500 total points
ID: 40508905
sp_helpindex on the index should give you everything you need to recreate it. If you're having trouble with it, post the output of sp_helpindex and I'll help.

It could be that it was defined as a constraint rather than an index. If sp_helpindex comes up with nothing, run sp_help on the table instead and post that output.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial shows how to create a greeting card by combining two image layers and a text layer on a PC using a free image editing app.
This article outlines the process to identify and resolve account lockout in an Active Directory environment.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question