Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Object level restoration problem...:) Expand / Collapse
Author
Message
Posted Wednesday, September 23, 2009 5:50 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Friday, February 28, 2014 5:07 AM
Points: 40, Visits: 213
Scenario:

1. Backup is taken in the night at 7pm

2. If users update the data at 9am (next day). Ex: UPDATE Employee SET EmpNo = 2 WHERE EmpNo = 1. This data is residing on Page - 1:88 .

3. Data page (1:88) is corrupted at 10am.



Questions:



If I follow your recommendations and after troubleshooting it successfully:



1. What will be the value of EmpNo? Is it 1 or 2?

A1 It will be 1, later you can

2. If it 1 then what will happen to the dependancies of Employee table? Assume, there is a trigger on Employee table which updates the EmpNo in the other tables as and when EmpNo is updated in the Employee table.



:) :) :)
Amey ghag
<a href='http://' class='authorlink' target='_blank'></a>
Post #792542
Posted Wednesday, September 23, 2009 7:05 AM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Wednesday, April 09, 2014 2:52 AM
Points: 870, Visits: 884
I'm a little confused here as to what you're doing....

When you say
Amey ghag (9/23/2009)
If I follow your recommendations....
what recommendations are you actually talking about?


Karl
source control for SQL Server
Post #792592
Posted Wednesday, September 23, 2009 7:12 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Monday, April 14, 2014 2:43 AM
Points: 2,723, Visits: 1,090
Cannot give recommendations on what you have said.

depending on what troubleshooting is applied, will mean that the end result could be different.

IF a restore can be used to rollback the change

EmpNo will be 1

otherwise

EmpNo will be (depending on the level of corruption, possible 2 or unreadable)
and once again

if restore is done from teh previous night, then the user update has not happened and the trigger wouldnt have fired.
otherwise
depending on what is stored on that data page, you will see nothing for that data page and updated values populated by the trigger for other dependant tables if they are not on that data page


--------------------------------------------------------------------------------------
Recommended Articles on How to help us help you and
solve commonly asked questions

Forum Etiquette: How to post data/code on a forum to get the best help by Jeff Moden
Managing Transaction Logs by Gail Shaw
How to post Performance problems by Gail Shaw
Help, my database is corrupt. Now what? by Gail Shaw
Post #792599
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse