Please start any new threads on our new 
    site at https://forums.sqlteam.com.  We've got lots of great SQL Server
    experts to answer whatever question you can come up with.
    
        | 
                
                    | 
                            
                                | Author | Topic |  
                                    | clarkbaker1964Constraint Violating Yak Guru
 
 
                                        428 Posts | 
                                            
                                            |  Posted - 2007-10-01 : 16:56:29 
 |  
                                            | I was able to fix this data with no data loss.However How would I use a restored backup to find the records that were on this particular page?DATE/TIME:	10/1/2007 12:33:36 PMDESCRIPTION:	Error: 823, Severity: 24, State: 2I/O error (torn page) detected during read at offset 0x00000003aa6000 in file 'K:\Program Files\Microsoft SQL Server\MSSQL\Data\MC_20070101_2.mdf'.COMMENT:	(None)JOB RUN:	(None)  You can do anything at www.zombo.com |  |  
                                    | paulrandalYak with Vast SQL Skills
 
 
                                    899 Posts |  |  
                                    | clarkbaker1964Constraint Violating Yak Guru
 
 
                                    428 Posts | 
                                        
                                          |  Posted - 2007-10-01 : 17:37:15 
 |  
                                          | Ran Repair_Rebuild and it was successful.  You can do anything at www.zombo.com |  
                                          |  |  |  
                                    | paulrandalYak with Vast SQL Skills
 
 
                                    899 Posts | 
                                        
                                          |  Posted - 2007-10-01 : 17:47:35 
 |  
                                          | ok - so it was a non-clustered index page.You should do root-cause analysis to find out why the torn-page occured in the first place - I'm guessing you had a power outage?Paul RandalManaging Director, SQLskills.com |  
                                          |  |  |  
                                    | KristenTest
 
 
                                    22859 Posts | 
                                        
                                          |  Posted - 2007-10-01 : 17:53:20 
 |  
                                          | Paul:Won't a power outage cause some sort of rollback [on reboot] that would sort-out a half-written-multi-block-disk-write ?Thanks,Kristen |  
                                          |  |  |  
                                    | paulrandalYak with Vast SQL Skills
 
 
                                    899 Posts | 
                                        
                                          |  Posted - 2007-10-01 : 18:00:25 
 |  
                                          | No - the page still needs to be read in so the transaction log can be redone or undone. If it's torn in any way then reading the page will detect that.It could also be the case that the transaction committed and is no loonger in the active portion of the log and a disk/controller error caused the page to be torn without any power outage occuring.ThanksPaul RandalManaging Director, SQLskills.com |  
                                          |  |  |  
                                    | KristenTest
 
 
                                    22859 Posts | 
                                        
                                          |  Posted - 2007-10-01 : 18:23:18 
 |  
                                          | I'll stop just flicking the power off to demonstrate how resilient SQL Server is then   |  
                                          |  |  |  
                                    | clarkbaker1964Constraint Violating Yak Guru
 
 
                                    428 Posts | 
                                        
                                          |  Posted - 2007-10-01 : 19:25:25 
 |  
                                          | Great Guess, we have been having power outages and spikes due to a building renovation next door.  You can do anything at www.zombo.com |  
                                          |  |  |  
                                |  |  |  |