Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
sandesh_moghe
Constraint Violating Yak Guru
310 Posts |
Posted - 2002-03-26 : 05:10:11
|
| Hi,Is it possible to restore/Recover database from Transaction Logs only.I have searched the forum for the same, but didnt get satisfactory answer.Thanx in advance---------------------------Sandesh - The Messanger |
|
|
AndrewMurphy
Master Smack Fu Yak Hacker
2916 Posts |
|
|
sandesh_moghe
Constraint Violating Yak Guru
310 Posts |
Posted - 2002-03-26 : 08:03:21
|
| Thanx Andrew,But my problem is quite different.first of all we just go thru the scenariao...I have a full back up of say 21st March.I have data files on C drive and log on D driveIf Today My C drive crashes.....At this point i have 21st March Backup and Transaction Log.How can i recover the database?---------------------------Sandesh - The Messanger |
 |
|
|
Jay99
468 Posts |
Posted - 2002-03-26 : 09:22:01
|
SOL* . . . that's why you do incremental backups, you can only restore up to your most recent backup (note: sometimes you can take a transaction log backup even if the db is corrupted and then restore up to the point in time just before corruption). If you blow you disk, and all you have is a full backup from the 21st of March, start packin your cardboard box . . .quote:
-- Back up the currently active transaction log.BACKUP LOG MyNwind TO MyNwind_log2 WITH NO_TRUNCATEGO-- Restore the database backup.RESTORE DATABASE MyNwind FROM MyNwind_1 WITH NORECOVERYGO-- Restore the first transaction log backup.RESTORE LOG MyNwind FROM MyNwind_log1 WITH NORECOVERYGO-- Restore the final transaction log backup.RESTORE LOG MyNwind FROM MyNwind_log2 WITH RECOVERYGO
*(footnote): maybe there is some 3rd party tool that can do this . . .Jay<O> |
 |
|
|
|
|
|