-- Full restore to point of failure
-- From BOL
-- See http://msdn2.microsoft.com/en-us/library/ms175093.aspx

--Backup the tail end of the log
BACKUP LOG <database_nameTO <backup_device>
   
WITH NORECOVERYNO_TRUNCATE;

-- Restore from full backup
RESTORE DATABASE <database_nameFROM <backup_device>
   
WITH NORECOVERY;

-- Optionally restore from differential backup
RESTORE DATABASE <database_nameFROM <backup_device>
   
WITH NORECOVERY;

-- Sequentially restore each transaction log backup from the full backup
-- through the tail log backup
RESTORE LOG <database_nameFROM <backup_device>
   
WITH NORECOVERY;

-- Recover the database
RESTORE DATABASE <database_name>
   
WITH RECOVERY