Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
344 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Generating a Format File in Sybase ASE BCP 1 1,198
Why did SAP buy Sybase? 3 168
SQL Syntax 10 78
SyBase Query Syntax Date Time conversion 4 40
The advancement in technology has been a great source of betterment and empowerment for the human race, Nevertheless, this is not to say that technology doesn’t have any problems. We are bombarded with constant distractions, whether as an overload o…
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

792 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