Unix Technical Forum

HELP: Point in time restore : HOW ?

This is a discussion on HELP: Point in time restore : HOW ? within the SQL Server forums, part of the Microsoft SQL Server category; --> I have full backup of database at 13:00 and another full backup at 17:00. I've made backup of transaction ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-29-2008, 04:35 AM
Pagus
 
Posts: n/a
Default HELP: Point in time restore : HOW ?

I have full backup of database at 13:00
and another full backup at 17:00.

I've made backup of transaction log at 17:05

When I try to restore database to state at
15:10 (point in time) , the dialogue in Enterprise Manager
says that only time after 17:05 is valid.

It seems to me that I've done something wrong at 17:05 while taking
trans. log backup.

But, again, if I have full backups at 13:00 and 17:00 restoring
database to point in time at 15:10 should be possible ?!

Any help is appreciated.

Pagus

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-29-2008, 04:35 AM
Rick Sawtell
 
Posts: n/a
Default Re: Point in time restore : HOW ?

Restore the full backup from 13:00 with NORECOVERY
Restore the tLog backup to 15:10 with Recovery

Should work.


Rick


"Pagus" <pagus@writeme.com> wrote in message
news:5q0bn0ttoavi4q60tgfqvp4ruqa0hnopmp@4ax.com...
> I have full backup of database at 13:00
> and another full backup at 17:00.
>
> I've made backup of transaction log at 17:05
>
> When I try to restore database to state at
> 15:10 (point in time) , the dialogue in Enterprise Manager
> says that only time after 17:05 is valid.
>
> It seems to me that I've done something wrong at 17:05 while taking
> trans. log backup.
>
> But, again, if I have full backups at 13:00 and 17:00 restoring
> database to point in time at 15:10 should be possible ?!
>
> Any help is appreciated.
>
> Pagus
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-29-2008, 04:35 AM
Greg D. Moore \(Strider\)
 
Posts: n/a
Default Re: Point in time restore : HOW ?


"Rick Sawtell" <r_sawtell@hotmail.com> wrote in message
news:OzkXPNitEHA.3200@TK2MSFTNGP09.phx.gbl...
> Restore the full backup from 13:00 with NORECOVERY
> Restore the tLog backup to 15:10 with Recovery


I have not done this, but you may want to restore tlog backup to 15:10 with
a standby file.

I THINK you can then restore in time past 15:10 again w/o having to do the
full restore.

(hmm, I should try this now that I think about... too tired right now
though. :-)


>
> Should work.
>
>
> Rick
>
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-29-2008, 04:36 AM
Tibor Karaszi
 
Posts: n/a
Default Re: Point in time restore : HOW ?

> (hmm, I should try this now that I think about... too tired right now
> though. :-)


No need to Greg. I have a demo script just for this. You can restore the same tlog several times,
going forward in time, using STANDBY. I also checked with MS and this is a tested and supported
method. Here are my comments on the topic:
http://www.karaszi.com/SQLServer/inf...eral_times.asp

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/


"Greg D. Moore (Strider)" <mooregr_deleteth1s@greenms.com> wrote in message
news:Mbndd.312510$bp1.26137@twister.nyroc.rr.com.. .
>
> "Rick Sawtell" <r_sawtell@hotmail.com> wrote in message
> news:OzkXPNitEHA.3200@TK2MSFTNGP09.phx.gbl...
>> Restore the full backup from 13:00 with NORECOVERY
>> Restore the tLog backup to 15:10 with Recovery

>
> I have not done this, but you may want to restore tlog backup to 15:10 with
> a standby file.
>
> I THINK you can then restore in time past 15:10 again w/o having to do the
> full restore.
>
> (hmm, I should try this now that I think about... too tired right now
> though. :-)
>
>
>>
>> Should work.
>>
>>
>> Rick
>>
>>

>
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-29-2008, 04:36 AM
Vincento Harris
 
Posts: n/a
Default Re: HELP: Point in time restore : HOW ?

Pagus <pagus@writeme.com> wrote in message news:<5q0bn0ttoavi4q60tgfqvp4ruqa0hnopmp@4ax.com>. ..
> I have full backup of database at 13:00
> and another full backup at 17:00.
>
> I've made backup of transaction log at 17:05
>
> When I try to restore database to state at
> 15:10 (point in time) , the dialogue in Enterprise Manager
> says that only time after 17:05 is valid.
>
> It seems to me that I've done something wrong at 17:05 while taking
> trans. log backup.
>
> But, again, if I have full backups at 13:00 and 17:00 restoring
> database to point in time at 15:10 should be possible ?!
>
> Any help is appreciated.
>
> Pagus


Always used transaction logs to do a point in time restore.

Vincento
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-29-2008, 04:41 AM
Mike
 
Posts: n/a
Default Re: HELP: Point in time restore : HOW ?

Hi there,

a point in time restore is only possible when using a transaction log
to do the restore. I know it probably doesnt help you but for future
reference here is the way to do it.

first restore the full backup leaving the database in no-recovery mode
then restore the transaction log backup to the point in time that you
want, this time recoverying the database after the restore completes.

Depending upon the size of your database it might be worth looking at
doing a full backup just once per day and several transaction log
backups throughout the day every hour, or couple of hours.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:13 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com