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
317 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
SYBASE Query combine date spans 7 635
Sybase SQL Anywhere 9 317
detecting a database behind a website 3 357
sql anywhere query 5 134
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
We have come a long way with backup and data protection — from backing up to floppies, external drives, CDs, Blu-ray, flash drives, SSD drives, and now to the cloud.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

759 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now