I have a maintenance plan for a database Where I have a
full database backups on every sunday and a differential
backup every evening and transaction log backups every
hour (7:00 Am - 7:00 Pm).
I have a backup server where I restore my backups. After I
restore my full backup, I restore the differential backup
then the transaction log backups. I created a job to
restore my backups but it fails after the first
differential backup (Tuesday's differential backup). It
restore the first differential backup after the full
backup but not the second one or the others after the
first one. I only have transaction log backups in between.
When I restore the second differential backup manually, I
see that the first differential backup is selected in
the 'view contents' box, anotherwords, it is trying to
restore the first differential backup with the second diff
backup file.
Is there a way to restore diff. backups in a sequence '
Thanks for any info........Here's some info from BOL's, you need to specify 'with
file' and the number. If you have three, you would restore
increase the file number for each differential.
Hope that helps... here's the examples from BOL
--
This example restores a database, differential database,
and transaction log backup of the MyNwind database.
-- Assume the database is lost at this point. Now restore
the full
-- database. Specify the original full backup and
NORECOVERY.
-- NORECOVERY allows subsequent restore operations to
proceed.
RESTORE DATABASE MyNwind
FROM MyNwind_1
WITH NORECOVERY
GO
-- Now restore the differential database backup, the
second backup on
-- the MyNwind_1 backup device.
RESTORE DATABASE MyNwind
FROM MyNwind_1
WITH FILE = 2,
NORECOVERY
GO
-- Now restore each transaction log backup created after
-- the differential database backup.
RESTORE LOG MyNwind
FROM MyNwind_log1
WITH NORECOVERY
GO
RESTORE LOG MyNwind
FROM MyNwind_log2
WITH RECOVERY
GO
>--Original Message--
>I have a maintenance plan for a database Where I have a
>full database backups on every sunday and a differential
>backup every evening and transaction log backups every
>hour (7:00 Am - 7:00 Pm).
>I have a backup server where I restore my backups. After
I
>restore my full backup, I restore the differential backup
>then the transaction log backups. I created a job to
>restore my backups but it fails after the first
>differential backup (Tuesday's differential backup). It
>restore the first differential backup after the full
>backup but not the second one or the others after the
>first one. I only have transaction log backups in between.
>When I restore the second differential backup manually, I
>see that the first differential backup is selected in
>the 'view contents' box, anotherwords, it is trying to
>restore the first differential backup with the second
diff
>backup file.
>Is there a way to restore diff. backups in a sequence '
>Thanks for any info........
>.
>|||Then, How can this be an automated process? I am using a
disk backup............
>--Original Message--
>Here's some info from BOL's, you need to specify 'with
>file' and the number. If you have three, you would restore
>increase the file number for each differential.
>Hope that helps... here's the examples from BOL
>--
>This example restores a database, differential database,
>and transaction log backup of the MyNwind database.
>-- Assume the database is lost at this point. Now restore
>the full
>-- database. Specify the original full backup and
>NORECOVERY.
>-- NORECOVERY allows subsequent restore operations to
>proceed.
>RESTORE DATABASE MyNwind
> FROM MyNwind_1
> WITH NORECOVERY
>GO
>-- Now restore the differential database backup, the
>second backup on
>-- the MyNwind_1 backup device.
>RESTORE DATABASE MyNwind
> FROM MyNwind_1
> WITH FILE = 2,
> NORECOVERY
>GO
>-- Now restore each transaction log backup created after
>-- the differential database backup.
>RESTORE LOG MyNwind
> FROM MyNwind_log1
> WITH NORECOVERY
>GO
>RESTORE LOG MyNwind
> FROM MyNwind_log2
> WITH RECOVERY
>GO
>
>>--Original Message--
>>I have a maintenance plan for a database Where I have a
>>full database backups on every sunday and a differential
>>backup every evening and transaction log backups every
>>hour (7:00 Am - 7:00 Pm).
>>I have a backup server where I restore my backups. After
>I
>>restore my full backup, I restore the differential
backup
>>then the transaction log backups. I created a job to
>>restore my backups but it fails after the first
>>differential backup (Tuesday's differential backup). It
>>restore the first differential backup after the full
>>backup but not the second one or the others after the
>>first one. I only have transaction log backups in
between.
>>When I restore the second differential backup manually,
I
>>see that the first differential backup is selected in
>>the 'view contents' box, anotherwords, it is trying to
>>restore the first differential backup with the second
>diff
>>backup file.
>>Is there a way to restore diff. backups in a sequence '
>>Thanks for any info........
>>.
>.
>|||Why would you want to restore diff backups in sequence? The only one needed is the last diff backup
and then all subsequent log backups. Or did I misunderstand your situation?
--
Tibor Karaszi, SQL Server MVP
Archive at: http://groups.google.com/groups?oi=djq&as_ugroup=microsoft.public.sqlserver
"Rob" <anonymous@.discussions.microsoft.com> wrote in message
news:03c501c3b918$2c88c3a0$a301280a@.phx.gbl...
> I have a maintenance plan for a database Where I have a
> full database backups on every sunday and a differential
> backup every evening and transaction log backups every
> hour (7:00 Am - 7:00 Pm).
> I have a backup server where I restore my backups. After I
> restore my full backup, I restore the differential backup
> then the transaction log backups. I created a job to
> restore my backups but it fails after the first
> differential backup (Tuesday's differential backup). It
> restore the first differential backup after the full
> backup but not the second one or the others after the
> first one. I only have transaction log backups in between.
> When I restore the second differential backup manually, I
> see that the first differential backup is selected in
> the 'view contents' box, anotherwords, it is trying to
> restore the first differential backup with the second diff
> backup file.
> Is there a way to restore diff. backups in a sequence '
> Thanks for any info........|||That is exacly what I want but not manually. I want to
automate this process..............
>--Original Message--
>Why would you want to restore diff backups in sequence?
The only one needed is the last diff backup
>and then all subsequent log backups. Or did I
misunderstand your situation?
>--
>Tibor Karaszi, SQL Server MVP
>Archive at: http://groups.google.com/groups?
oi=djq&as_ugroup=microsoft.public.sqlserver
>
>"Rob" <anonymous@.discussions.microsoft.com> wrote in
message
>news:03c501c3b918$2c88c3a0$a301280a@.phx.gbl...
>> I have a maintenance plan for a database Where I have a
>> full database backups on every sunday and a differential
>> backup every evening and transaction log backups every
>> hour (7:00 Am - 7:00 Pm).
>> I have a backup server where I restore my backups.
After I
>> restore my full backup, I restore the differential
backup
>> then the transaction log backups. I created a job to
>> restore my backups but it fails after the first
>> differential backup (Tuesday's differential backup). It
>> restore the first differential backup after the full
>> backup but not the second one or the others after the
>> first one. I only have transaction log backups in
between.
>> When I restore the second differential backup manually,
I
>> see that the first differential backup is selected in
>> the 'view contents' box, anotherwords, it is trying to
>> restore the first differential backup with the second
diff
>> backup file.
>> Is there a way to restore diff. backups in a sequence '
>> Thanks for any info........
>
>.
>|||You can read the output from the RESTORE HEADERONLY command if you need to find out this information
from the backup device and if you have several backups on the same backup device. Or do as EM does,
read the info from the backup history tables in the MSDB database.
--
Tibor Karaszi, SQL Server MVP
Archive at: http://groups.google.com/groups?oi=djq&as_ugroup=microsoft.public.sqlserver
"Rob" <anonymous@.discussions.microsoft.com> wrote in message
news:050001c3b9a6$0d5611c0$a001280a@.phx.gbl...
> That is exacly what I want but not manually. I want to
> automate this process..............
>
>
> >--Original Message--
> >Why would you want to restore diff backups in sequence?
> The only one needed is the last diff backup
> >and then all subsequent log backups. Or did I
> misunderstand your situation?
> >
> >--
> >Tibor Karaszi, SQL Server MVP
> >Archive at: http://groups.google.com/groups?
> oi=djq&as_ugroup=microsoft.public.sqlserver
> >
> >
> >"Rob" <anonymous@.discussions.microsoft.com> wrote in
> message
> >news:03c501c3b918$2c88c3a0$a301280a@.phx.gbl...
> >> I have a maintenance plan for a database Where I have a
> >> full database backups on every sunday and a differential
> >> backup every evening and transaction log backups every
> >> hour (7:00 Am - 7:00 Pm).
> >>
> >> I have a backup server where I restore my backups.
> After I
> >> restore my full backup, I restore the differential
> backup
> >> then the transaction log backups. I created a job to
> >> restore my backups but it fails after the first
> >> differential backup (Tuesday's differential backup). It
> >> restore the first differential backup after the full
> >> backup but not the second one or the others after the
> >> first one. I only have transaction log backups in
> between.
> >>
> >> When I restore the second differential backup manually,
> I
> >> see that the first differential backup is selected in
> >> the 'view contents' box, anotherwords, it is trying to
> >> restore the first differential backup with the second
> diff
> >> backup file.
> >>
> >> Is there a way to restore diff. backups in a sequence '
> >>
> >> Thanks for any info........
> >
> >
> >.
> >