Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

Object level restoration problem...:) Expand / Collapse
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: Saturday, February 6, 2016 7:50 PM
Points: 40, Visits: 224

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.


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: Thursday, February 11, 2016 5:18 AM
Points: 870, Visits: 940
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?

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


Group: General Forum Members
Last Login: Wednesday, April 22, 2015 2:33 AM
Points: 2,732, Visits: 1,160
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


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.
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