June 30, 2014 at 1:03 pm
Hi folks,
One of our clients gets the following error when trying to backup a database:
quote:
________________________________________
System.Data.SqlClient.SqlException: SQL Server detected a logical consistency-based I/O error:
incorrect checksum (expected: 0x121db60d; actual: 0x521db60d).
It occurred during a read of page (1:1632) in database ID 4 at offset 0x00000000cc0000 in file
'C:\Program Files (x86)\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\MSDBData.mdf'.
Additional messages in the SQL Server error log or system event log may provide more detail.
This is a severe error condition that threatens database integrity and must be corrected immediately.
Complete a full database consistency check (DBCC CHECKDB).
This error can be caused by many factors; for more information, see SQL Server Books Online.
Could not insert a backup or restore history/detail record in the msdb database.
This may indicate a problem with the msdb database.
The backup/restore operation was still successful.
________________________________________
I tried to perform checkdb, checkdb repair_rebuild as well as checkdb REPAIR_ALLOW_DATA_LOSS but none of these corrected the issues is the MSDB database.
My question is: can I just grab a clean MSDB database from another instance to recover corrupt one or do I really have to uninstall/reinstall SQL Server?
June 30, 2014 at 2:07 pm
before you do anything, run the followign command, and post the full results here for some peer review:
DBCC CHECKDB('msdb') WITH NO_INFOMSGS, ALL_ERRORMSGS
DO NOT reboot the server, take the database offline, detach it or otherwise fiddle with it; there's a good chance it can be repaired, but you can do things that prevent you from fixing it, so start witht eh checkdb command.
Lowell
July 1, 2014 at 2:38 am
Do you have a clean backup of the MSDB database?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 1, 2014 at 11:00 pm
jasonkabe22 (7/1/2014)
Data from corrupt mdf file can be recovered by following methods:Repair MDF file with DBCC CHECKDB: Microsoft offers a command that is known as DBCC CHECKDB, when you run this then it try to detect & fix all the possible error message. If it fails to fix error message then it suggest repair clause. Re-run the command with suggest repair clause. Your problem might be solved. But, you may loss some amount of data after this.
Repair MDF file with SQL Server Fix Toolbox: If you don't want to loss any data then you may try mdf repair tool.
http://www.sqlserver.fixtoolbox.com/[/url]
It repairs corrupt mdf file created in SQL server 2012, 2008 R2, 2008, 2005, 2000 & 7.0
The op already stated that he tried DBCC CHECKDB in virtually every mode known to man including the dreaded "REPAIR_ALLOW_DATA_LOSS ".
Gail's question is leading in the right direction because it sounds like the MSDB database is toast and it's going to take a restore to get most of everything back.
--Jeff Moden
Change is inevitable... Change for the better is not.
July 2, 2014 at 2:21 am
Jeff, would you mind removing the quote of the spam post (that's all those are)?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply