Corruption in TempDB
I received a contact message from the “Contact us” form, asking about how to go about repairing corruption in TempDB. The error message was something… Read More »Corruption in TempDB
I received a contact message from the “Contact us” form, asking about how to go about repairing corruption in TempDB. The error message was something… Read More »Corruption in TempDB
At Stedman Solutions, LLC, we recently had the opportunity to help out another client with a corrupt database, to completely recover all their data and remove all the corruption. In this specific scenario Microsoft had told them that their only options was to restore from a backup, but because the corruption had been there for a while before they noticed they didn’t have any recent backups that were corruption free.
In this specific scenario there were 51 tables with corruption, and some other corruption that was in the data file, but not associated with any tables or objects.
Here is how the process went:
Read More »Another Successful Database Corruption RepairPlease join me on Saturday March 16 in Victoria BC Canada for my SQL Saturday presentation on the Basics of Database Corruption Repair. Here is… Read More »Basics of Database Corruption Repair
Recently Derrick and I had a chance to help with a corruption repair in Thailand, just to clarify, the client was in Thailand, not us.… Read More »Fixed Corruption in Thailand
Hello everyone, the last week I have not been able to keep everyone as up to date on the Database Corruption Challenge as I would… Read More »Database Corruption Challange 6 – Coming Soon
Here is how I solved Week 5 of the Database Corruption Challenge. The following steps were tested and confirmed working on SQL Server 2008R2, SQL Server 2012, and SQL Server 2014.
To oversimplify, here are the steps:
Find out more about the Week 5 Challenge on the overview blog post.
The winning solution, was submitted by Patrick Flynn, just 3 hours and 18 minutes after the challenge was posted. Patrick provided me with the following steps, and TSQL code to back up the steps:
The process was
(a) Restore two copies from backup (Old backup has 400 Customers and 1622 Orders)
(b) Use the supplied MDF, LDF and NDF to hack attach to instance
(c) Try using tail-log backup but log chain broken also as errors in Boot page (1:9) unable to use all files
(d) Instead using original backup replace only log file and ndf file (containing user data)
(e) After switching to emergency mode found errors in Orders table (1:175) but this does not contain new rows
(f) Able to select the newest 181 rows and insert into original orders table
Final Status was
Orders = 12803 rows
Customers = 400 rows
No corruption remaining
Here is the exact TSQL code that supported that solution.
Read More »Week 5 – Winning Solution – Database Corruption Challenge
As the weekend approaches and we head for another Database Corruption Challenge (DBCC) I want to remind everyone who is interested of being notified of… Read More »Another Corruption Challenge This Weekend.