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 12»»

Database Restore Expand / Collapse
Author
Message
Posted Thursday, January 16, 2014 5:12 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, April 04, 2014 5:28 AM
Points: 3, Visits: 26
If backup schedule scnario as below
Monday- 10 PM full backup
Tuesday-6AM Differential backup
Tuesday-1 Pm differential backup
And every one our transactional backup is scheduled

If my DB is crashed @ 2:55 PM on tuesday, how can i recover the database.
Please let me know the entire query.

Thanks
Shashikala
Post #1531506
Posted Thursday, January 16, 2014 5:21 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 1:57 PM
Points: 41,558, Visits: 34,479
Restore the last full backup (see books online - the SQL help file - for the RESTORE syntax)
Restore the 1pm differential
Restore all the log backups since that diff. You didn't say what the schedule is, so can't say how many you will need to restore



Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1531510
Posted Thursday, January 16, 2014 5:27 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, April 04, 2014 5:28 AM
Points: 3, Visits: 26
Transactional backup as below
every one our let say,11PM,12AM,1AM,2AM.............1PM,2PM.
If Db crashed @ 2:55PM, how can i recover the DB.
Post #1531513
Posted Thursday, January 16, 2014 5:32 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 1:57 PM
Points: 41,558, Visits: 34,479
Restore the last full backup
Restore the 1pm differential
Restore all the log backups since that diff.

Whether or not you can recover that 55 minutes since the last log backup depends on the type of failure. Look in books Online for the discussion of 'Tail-log backup'

That risk is why the log backup interval should be less than the allowable data loss for the system.



Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1531516
Posted Tuesday, January 28, 2014 1:10 PM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: Administrators
Last Login: Today @ 4:29 PM
Points: 32,819, Visits: 14,965
GilaMonster (1/16/2014)

That risk is why the log backup interval should be less than the allowable data loss for the system.


Best quote I've seen in awhile and very true.








Follow me on Twitter: @way0utwest

Forum Etiquette: How to post data/code on a forum to get the best help
Post #1535601
Posted Wednesday, January 29, 2014 9:35 PM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Wednesday, March 19, 2014 5:48 AM
Points: 1,048, Visits: 2,646
Some times it allows you to take tail log backup (with continue on error) and restore it , you may get all the data.

Every time you cannot depend on luck as gail said reduce the timing frequency of log backup. normally 15 minutes.


Regards
Durai Nagarajan
Post #1536157
Posted Wednesday, January 29, 2014 10:55 PM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 1:57 PM
Points: 41,558, Visits: 34,479
durai nagarajan (1/29/2014)
Some times it allows you to take tail log backup (with continue on error) and restore it , you may get all the data.


WITH NO_TRUNCATE

and that's called a tail-log backup



Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1536166
Posted Tuesday, February 04, 2014 11:50 AM
Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Sunday, April 20, 2014 9:50 PM
Points: 582, Visits: 1,977
Do you guys use any automated script to restore the t-logs?

If there are hundreds of t-logs to restore, it will be time consuming right?
Post #1537898
Posted Wednesday, February 05, 2014 4:09 PM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Saturday, April 12, 2014 11:40 AM
Points: 2,795, Visits: 8,297
If you took the backups using native SQL, and they are stored in the same location as the time of backup, then I think you can use the GUI to restore and it will show you all the t-log backups, already selected, ready for the restore.

It might be a good idea to go through the procedure with a test database so you are familiar with the steps,



Post #1538404
Posted Wednesday, February 05, 2014 4:54 PM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Today @ 5:28 PM
Points: 20,483, Visits: 14,136
Steve Jones - SSC Editor (1/28/2014)
GilaMonster (1/16/2014)

That risk is why the log backup interval should be less than the allowable data loss for the system.


Best quote I've seen in awhile and very true.



Agreed




Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server


SQL RNNR

Posting Performance Based Questions - Gail Shaw
Posting Data Etiquette - Jeff Moden
Hidden RBAR - Jeff Moden
VLFs and the Tran Log - Kimberly Tripp
Post #1538409
« Prev Topic | Next Topic »

Add to briefcase 12»»

Permissions Expand / Collapse