[dba-SQLServer]Repairing a corrupt table

Mark Boyd MarkBoyd at McBeeAssociates.com
Fri Oct 10 08:46:35 CDT 2003


I am in the process of repairing a corrupt table.

My backup software is failing with the following message: 'Table
Corrupt: Object ID 734690461, Index ID 2. Keys out of order on page
(1:78526), slots 145 and 146.'

It seems table MSmerge_contents has become corrupt.  This table is used
in the replication with another SQL Server.

I ran DBCC_CHECKDB to make sure this was the only table with corruption
issues.  Now I want to run the repair option, but am prompted with a
message stating the database needs to be in single-user mode in order to
repair.  I tried putting the db into single-user mode, but am prompted
with an error message telling me the option can't be changed while
another user is in the database.  I'm pretty sure no one else is in it,
but am thinking the subscription to the other server needs to be removed
to do this.

Has anyone dealt with this sort of issue before?

How can I tell if anyone is connected to the database?

 

TIA,

Mark Boyd

Sr. Systems Analyst

McBee Associates, Inc.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://databaseadvisors.com/pipermail/dba-sqlserver/attachments/20031010/4fb3b76e/attachment.html>


More information about the dba-SQLServer mailing list