Solved

how to make table or index corrupt ('suspect') in Sybase

Posted on 2001-06-21
3
782 Views
Last Modified: 2008-02-01
I know it sounds crazy, but I'm testing some scripts to detect suspect tables and indexes in Sybase and I'm wondering how to deliberately force a table or index into suspect or corrupt status.  Any ideas?
0
Comment
Question by:schumacr
[X]
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
3 Comments
 
LVL 1

Accepted Solution

by:
gamaerte earned 50 total points
ID: 6286304
Well Mr Crazy,

Try fetching the on-disk placement(I don't have a Sybase engine on site , nor documentatio,which means I can't tell you which system table provides you this information) from one of those indexes /tables and alter it with a hex editor .
and do a select on that table to make the engine "see" it is corrupt.

But doing that will make your database corrupt , and you will need to restore.

Greetings

gamaerte
0
 
LVL 54

Expert Comment

by:nico5038
ID: 7257297

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
 - Answered by: gamaerte  
Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

Nic;o)
0
 

Expert Comment

by:Jgould
ID: 7282243
Question has been closed as per recommendation

JGould-EE Moderator
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Many companies are looking to get out of the datacenter business and to services like Microsoft Azure to provide Infrastructure as a Service (IaaS) solutions for legacy client server workloads, rather than continuing to make capital investments in h…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

756 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