Now i would lime to extend my requirement a little more. ...
I am able to restore to a certain point of time with the three
restores as explained by you. Now is there anyway where in i can do
something like
Restore DB1
Restore Log1
Restore Log2 at (say) 13.00.00.000
To restore to 13.01.01.011
i will need to
Restore DB1
Restore Log1
Restore Log2 at (say) 13.01.01.011
Is there anyway i can skip the first two restores.
It will add to look good.
Thanks for reading me...
Cheers
RVG
raj_chins@rediffmail.com (Rajesh Garg) wrote in message news:<14215add.0308270710.62d49362@posting.google. com>...[color=blue]
> Hey Ian that works and works good.
> ACtually i too had come up with a solution but had some problems with
> that. Just neede to discuss it over.
> I just used no_truncate in my bakup logs.
> The problem there was that sql was not able to free up the place used
> as it does in normal case. ( i have though not tried whether it frees
> the space in this case also but i assume it will). The solution u gave
> to me looks better.
> Thanks once again
> Cheers
> RVG
>
> "Ian Stocks" <nospam@testbox2.co.uk> wrote in message news:<3f4c7f7a$0$321$bed64819@pubnews.gradwell.net >...[color=green]
> > "Rajesh Garg" <raj_chins@rediffmail.com> wrote in message
> > news:14215add.0308262006.2b60cde@posting.google.co m...[color=darkred]
> > > Hi IAN thanks for prompt help ....
> > > I will make it simpler to look...
> > >
> > > I have DB1 - as backup for day 1
> > > LOg1 as backup of logs
> > >
> > > T1 T2 T3 T4 T5 ...some transaction on day 2
> > >
> > > Now i backup again
> > > DB2
> > > Log2
> > >
> > > I want to restore the database till the point of transaction T3 say. I
> > > know the time or i assume a certain time.
> > > Is this possible .....i tried several options but hand in between for
> > > some reason or the other. How can i achieve my solution. Is there some
> > > extra parameter i will require or what....i am wondering now that it
> > > is not at all possible. Please help.[/color]
> >
> >
> > This is definately possible, try this for yourself :-
> >
> > create database restore_test
> >
> > create table changes (col1 varchar(128))
> >
> > backup database restore_test to disk = 'c:\restore_test_1.bck'
> >
> > backup log restore_test to disk = 'c:\restore_test_t1.bck'
> >
> > insert into changes (col1) values ('insert 1')
> > select getdate()
> > waitfor delay '00:00:05'
> > insert into changes (col1) values ('insert 2')
> > select getdate() -- take a note of this time
> > waitfor delay '00:00:05'
> > insert into changes (col1) values ('insert 3')
> > select getdate()
> >
> > select * from changes
> >
> > backup database restore_test to disk = 'c:\restore_test_2.bck'
> >
> > backup log restore_test to disk = 'c:\restore_test_t2.bck'
> >
> > -- now restore to point in time
> > use master
> > restore database restore_test from disk = 'c:\restore_test_1.bck' with
> > norecovery
> >
> > restore log restore_test from disk = 'c:\restore_test_t1.bck' with
> > norecovery
> >
> > restore log restore_test from disk = 'c:\restore_test_t2.bck' with stopat =
> > '2003-08-27 10:43:20' -- this is the time just after 'insert 2'
> >
> > select * from restore_test..changes -- 'insert 3' has not been included
> >
> > Ian.[/color][/color]