Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 28th, 2004, 01:44 AM
Authorized User
 
Join Date: Nov 2003
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to restore a diffrential Back up.

Hi all,

Here is my scenario . I take full back up every friday and diffrential back up everday evening and transactional log every hour, If my system crashes suddenly. After restoring the full back up i need to restore the diffrential back up. After restoring the diffrential back it shows that the database is under loading. And its found unavailable for the appilaction. How can i over come that,

Mukesh

 
Old October 28th, 2004, 04:36 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 625
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jemacc
Default

You will have to wait until that process finishes. does it stay in that state. Also are you restoring using with recovery? Each differential backup must be restored in sequence.

Follow the books online recommendation.

B. Restoring a database, differential database, and transaction log backup
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



Jaime E. Maccou
Applications Analyst
 
Old October 28th, 2004, 04:48 AM
Friend of Wrox
 
Join Date: Sep 2004
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Anantsharma Send a message via Yahoo to Anantsharma
Default

Hi,

I suggest u to use Enterprise Manager for ease.

If u have recovered a full backup and then Deiff backup on that and still its shoeing that its getting loaded (Loading..) and grayed Use this one in Query Analyzer :-

RESTORE DATABASE MYDB RECOVERY

This should solve ur prob. If not then, delete the database and start recovery process. Seems u r aware of the NO Recovery / Standby option while restoring.

When u restore using Enterprise Maanger and restoring A Full backup, do remember to select the option "Leave database nonoperational but able to restore additional transaction log" in Options tab of dailog.
Then u restore the differential backup BUT DO REMEMBER to select "Leave database operational. NO additional transaction log can be restored" this time. Thats it.

Same applicable for restoring the transction log backups too if u r going for Point in time recovery.

Gud luck

B. Anant
 
Old October 28th, 2004, 06:16 AM
Authorized User
 
Join Date: Nov 2003
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you very much for your prompt replies

I am was using with restore with recovery option. Now i understand that i should not have been done like that. Any way i will try with norecovery option. Thanks once again,

Mukesh






Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help - BackUp and Restore sivap SQL Server 2005 5 July 13th, 2007 08:51 PM
Restore umeshtheone SQL Server 2000 1 July 12th, 2007 07:38 AM
DB Restore somnath.kartic SQL Server 2005 1 July 12th, 2007 07:36 AM
history.back or hitting the back button won't work lian_a Classic ASP Basics 4 July 29th, 2004 12:14 AM
Restore problem Adam H-W SQL Server 2000 1 June 3rd, 2004 05:05 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.