?
Solved

DBCC Corrupt

Posted on 2001-07-19
1
Medium Priority
?
907 Views
Last Modified: 2011-09-20
Anybody know the procedure to use DBCC corrupt, to forcibly corrupt a database table
0
Comment
Question by:amathur347
[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
1 Comment
 
LVL 10

Accepted Solution

by:
bret earned 400 total points
ID: 6300749
Sure.  First off, it will only run against a database named "victimdb".

You then call dbcc corrupt with an object (id or name),  index id, and error number

Example:

dbcc corrupt(mytable, 1, 2540)

will cause a 2540 error on the clustered index of mytable.

There is a quite limited set of errors that this command can create, mostly errors
that TABLEALLOC will fix:  1133, 2502, 2503, 2521, 2523,2525, 2529, 2540, 2546, and 7939.

It is also not documented or supported in any way by Sybase (so if it fails to corrupt your
table, Sybase won't fix it so it does  :-)

-bret
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

719 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