You are on page 1of 2

A recovery model is a database property that controls

=> how transactions are logged, whether the transaction log requires (and
ows) backing up,

all

=> and what kinds of restore operations are available.


==> Recovery models are designed to control transaction log maintenance

1. Check the Schema and location of data and log files IN BACKUP FILES
RESTORE FILELISTONLY FROM DISK = 'E:\BACKUP\PEER_DB_FULL.BAK'
2. Now restore FULL backup with NoRecovery option
RESTORE DATABASE PEER_DB
FROM DISK = 'E:\BACKUP\PEER_DB_FULL.BAK' WITH REPLACE,
MOVE 'PEER_DB' TO 'E:\Data\PEER_DB.mdf',
MOVE 'PEER_DB_log' TO 'E:\LOG\PEER_DB_log.ldf' , NORECOVERY
3. restore Latest differential Backup with norecovery
4. Restore Tlog backups in sequence with Last Log backup in Recovery mode
Interview Question
===================
You have a production Database and Backup stategy is like ,
Sunday

@ 10 pm = FULL Backup

Monday @ 10 pm = Differential
Tuesday @ 10 pm = Differential
------------Saturday @10 pm = Differential
and Every 30 min, We take Transaction Log backup .
Now on Friday, the database crashes @ 4:20 PM. How will you restore database wit
hout loosing any data .
Restore Steps
-------------Take Tail Log backup .trn
1. Restore Sunday FULL backup -- 10 pm with norecovery mode
2. restore DIff. backup of thrusday-- with Norecovery
3. Restore T. Log backup starting from 10 pm of Thursday...11:00.11:30........4:
00pm with Norecovery
4. Restore Tail. Log backup of 4:20 pm with recovery

You might also like