on 07-10-2015 5:28 PM
The other day I faced the damaged base of server (MS SQL 2005) which works with failure, and it is impossible to restore by testing correction (the checksum error takes off). Thus the base isn't unloaded in the file - the same mistake. Therefore it wasn't succeeded to restore base. Advise, what should I do, to save base?
I can advise to try to restore base by testing of the SQL. Here are the commands:
DBCC CHECKDB ('database', REPAIR_FAST)
DBCC CHECKDB ('database', REPAIR_REBUILD)
If previous two didn't help, then it is already possible to apply a third, but it carries behind it a potential data loss, and it is desirable to apply in a hopeless case.
DBCC CHECKDB ('database', REPAIR_ALLOW_DATA_LOSS)
If the command fails because there is no the single-user mode, then it is possible to pass on command
alter database db-name set SINGLE_USER
It is clear that before any tests it is necessary to make a backup copy (means of SQL if unloading is not done).
Or also you can try to restore the database using Recovery Toolbox for SQL Server.
https://sql.recoverytoolbox.com/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.