Solved

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

Posted on 2001-06-21
3
752 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
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
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…

867 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

21 Experts available now in Live!

Get 1:1 Help Now