We have SQL2000 for our ERP database and I perform full backups every night and transaction log backups during the day every 15 minutes. Every Sunday I perform a database integrity check of all of our databases and after that I perform a rebuilding of indexes on all of our tables. I noticed this past week that our database integrity job failed and it never has before. The error was 2 consistency errors with a specific table in our ERP database. We think this issue stemmed from a hardware issue on the previous Thursday. So users had been transacting for two full days after we noticed this issue.
On Monday morning we placed a call to Microsoft and they said that in the worst case (if I cannot repair the database) situation you can restore from the previous full backup (previous Wed night) and roll forward the transaction log backups. Well I could not do that because we perform full backups every night and the transaction log backups are overwritten if the full backup runs clean.
There is no way in hell we could've re-keyed 2 days of transactions. As it turned out, we figured the thing to do would be to restore the last backup (Sunday night's) to our test environment and try to run the repair at least in 'test' first. So I restored the database and figured I would at least run an integrity check in there just to make sure I get the same error message as I got in production about the consistency errors. When I ran the DBCC command, the database was fine (no errors). So then I got to thinking that maybe the rebuild of the indexes that occurred after the integrity check might have corrected the problem? ANy help on this would be appreciated.
Another question I have is how often do you run a database integrity check on your databases? Maybe we should do this each night? I don't want to experience this again ever!
Regards,
Bessebo
On Monday morning we placed a call to Microsoft and they said that in the worst case (if I cannot repair the database) situation you can restore from the previous full backup (previous Wed night) and roll forward the transaction log backups. Well I could not do that because we perform full backups every night and the transaction log backups are overwritten if the full backup runs clean.
There is no way in hell we could've re-keyed 2 days of transactions. As it turned out, we figured the thing to do would be to restore the last backup (Sunday night's) to our test environment and try to run the repair at least in 'test' first. So I restored the database and figured I would at least run an integrity check in there just to make sure I get the same error message as I got in production about the consistency errors. When I ran the DBCC command, the database was fine (no errors). So then I got to thinking that maybe the rebuild of the indexes that occurred after the integrity check might have corrected the problem? ANy help on this would be appreciated.
Another question I have is how often do you run a database integrity check on your databases? Maybe we should do this each night? I don't want to experience this again ever!
Regards,
Bessebo