Mark Boyd
MarkBoyd at McBeeAssociates.com
Fri Oct 10 12:59:40 CDT 2003
Eric - Thanks for the input. I'll give it a shot late tonight when nobody is in the database. Mark -----Original Message----- From: Eric Barro [mailto:ebarro at afsweb.com] Sent: Friday, October 10, 2003 12:26 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Repairing a corrupt table Mark, Unfortunately replication has to be rebuilt. Have SQL generate the scripts for you so that you can easily recreate those filters. That's one of the things I hate about the replication scenario. Even a table structure change will require rebuilding the replication for publications that reference that table. The ones you need to be concerned about are the ones that have the spid. --- Eric Barro Senior Systems Analyst Advanced Field Services (208) 772-7060 http://www.afsweb.com <http://www.afsweb.com/> -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of Mark Boyd Sent: Friday, October 10, 2003 8:29 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Repairing a corrupt table Eric - Thanks for your response. Running sp_who2 returned 15 records with statuses ranging from sleeping, to background, to runnable. What do these statuses mean? Should I only be concerned with runnable and background? Also, you mention turning "off" replication. Is there a way to turn off replication without deleting the subscription? We used many filters when creating the subscription, and I don't want to recreate them if I don't have to. Thanks again, Mark -----Original Message----- From: Eric Barro [mailto:ebarro at afsweb.com] Sent: Friday, October 10, 2003 10:53 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Repairing a corrupt table Mark, Go to the database you want to use and then click on Tools and then SQL Query Analyzer from the menu. Type sp_who2 to get a list of connections and processes they are running. I don't believe you can put the db in single user mode with replication turned on. You will need to turn it off then. --- Eric Barro Senior Systems Analyst Advanced Field Services (208) 772-7060 http://www.afsweb.com <http://www.afsweb.com/> -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of Mark Boyd Sent: Friday, October 10, 2003 6:47 AM To: SQLServerList Subject: [dba-SQLServer]Repairing a corrupt table 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/c6e4fb4d/attachment.html>