For restoring a db from transactional backup first u need to restore latest full backup with 'RESTORE WITH RECOVERY' option then transactional log backups(except latest transactional backup) in sequence with 'RESTORE WITH RECOVERY' option & at last restore latest transactional backup with 'RESTORE WITH NORECOVERY' . And now ur db is ready to use
Err... no. The complete other way around.
You need to restore the full backup WITH NO
RECOVERY (or STANDBY), then all the log backups except the last WITH NO
RECOVERY (or STANDBY), then the last log backup is the one that restores WITH RECOVERY
WITH RECOVERY signals the end of the restore process and brings the DB online. If you restore the full WITH RECOVERY, further log backups will fail to restore because the database is online and available. Attempts to restore logs will be met with an error saying that no files are ready to roll forward.
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)SQL In The Wild
: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter
We stand on the bridge and no one may pass