Urgently need assistance, Corrupt table!

Urgently need assistance, Corrupt table!

Post by CMietra » Tue, 11 Nov 1997 04:00:00



I have run SQLHDTST on the server, and it passed the integrity test.
The procedure I took to build the corrupted tables are:
1) sp_rename the old
2) create a new table, load data from old, then create indexes, and
grant permission to public
3) delete from system tables like sysobjects, sysindexes, etc..all
references to the corrupted table
4) place in single user mode (confusing part)
after typing sp_dboption dbname, single user, True...it still tells me
I'm not in single user mode
It says to run RECONFIGURE, do you do this after typing the above
command?

5) place system to allow updates (another confusing part)
I type sp_configure "allow updates", 1
Do you type CHECK POINT afterwards?

6) run dbcc fix_al
7) changed sp_configure "allow updates", 0
from the command prompt; run bldmastr /d c:\sql\data\master.dat /r
to set all configuration back to their default
8) run dbcc checkdb

How do you place it back to multi-user mode?  Anyways, I lost the
corrupted table, and re-create again.
Now I can't seem to delete the old corrupted table.  I deleted all
references from the sysobjects. Still the same.

Please someone help!

 
 
 

Urgently need assistance, Corrupt table!

Post by Rick Carro » Tue, 11 Nov 1997 04:00:00


Quote:>4) place in single user mode (confusing part)
>after typing sp_dboption dbname, single user, True...it still tells me
>I'm not in single user mode

To start sql in single user mode, you can login to the server from a
dos command prompt:
isql /Uusername /Ppassword /Sservername /m
or from Control Panel, Services, MS SQL Server, start the service with
the -m parameter.

Quote:>How do you place it back to multi-user mode?  

For sql, restart the service and it will automatically start in
multi-user.  For a db sp_dboption, dbname, single user, false

Quote:> Anyways, I lost the
>corrupted table, and re-create again.
>Now I can't seem to delete the old corrupted table.  I deleted all
>references from the sysobjects. Still the same.

Stop and restart the service (stop signs) and it should disappear.  
Quote:

>Please someone help!


 
 
 

Urgently need assistance, Corrupt table!

Post by Louis Larivier » Fri, 14 Nov 1997 04:00:00



> I have run SQLHDTST on the server, and it passed the integrity test.
> The procedure I took to build the corrupted tables are:
> 1) sp_rename the old
> 2) create a new table, load data from old, then create indexes, and
> grant permission to public
> 3) delete from system tables like sysobjects, sysindexes, etc..all
> references to the corrupted table
> 4) place in single user mode (confusing part)
> after typing sp_dboption dbname, single user, True...it still tells me
> I'm not in single user mode
> It says to run RECONFIGURE, do you do this after typing the above
> command?

> 5) place system to allow updates (another confusing part)
> I type sp_configure "allow updates", 1
> Do you type CHECK POINT afterwards?

> 6) run dbcc fix_al
> 7) changed sp_configure "allow updates", 0
> from the command prompt; run bldmastr /d c:\sql\data\master.dat /r
> to set all configuration back to their default
> 8) run dbcc checkdb

> How do you place it back to multi-user mode?  Anyways, I lost the
> corrupted table, and re-create again.
> Now I can't seem to delete the old corrupted table.  I deleted all
> references from the sysobjects. Still the same.

> Please someone help!

About (4):  First, you must be in the master database before executing
sp_dboption.  Second, only DBO or SA can set db options.  Third, a
checkpoint must be issued in the database after an option has been set.

About (5):  You must issue the 'reconfigure with override' command
after  allowing updates to system tables.

To put the db in multi-user mode, try "sp_dboption dbname, 'single
user', false"  followed by a checkpoint in the db.

Good Luck!

 
 
 

1. Error 3112 - Urgently Need Assistance

A system that has been running for about a year has
accumulated data to a size of approximately 200MB.  The
file for whatever reason required a 'Repair' operation to
be conducted.  I can only presume that the repair
operation failed during the process.  As a result, I now
have a database that will not allow access to the data.  I
can read all properties, except fields and records.  When
i try to open a recordset in DAO or ADO, I get the same
error message; "Record(s) can't be read; no read
permission on [TableName]".  The thing is, there are no
user name/password combinations set on the database.  
Fortunately, I had a backup and was able to restore most
of the data.  Unfortunately, 3 days are missing.  Is there
any way at all that I can get access to the data.  I
really need some help with this.  Thanks for any help.

Alex.

2. Ole Error Code ... Interface non registered

3. Sybase Clock, urgently need assistance

4. Query Tables Definitions

5. SQL-Merge Tables, Help needed urgently

6. connection can not be established to a running SQL Server

7. Urgently need help with accessing one table with multiple forms

8. DB2/UDB NT-Unix FP: update on-line documentation?

9. Need Assistance: Clustering and constraints in a table

10. Need Assistance: Clustering and Constraints in a table

11. Need Assistance: Constraints in a table specific

12. Need Assistance: Constraints in a table

13. Need Assistance: Clustering and Constraints in a table