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.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Restore Log-sequence

Author  Topic 

sql9.babu
Starting Member

21 Posts

Posted - 2008-02-05 : 21:27:32
hi all,

how to restore Transactional log files in Sequence,

Restore log Db_name
from disk='d:\backup_name.trn'
...

pls required syntax for it

thanx for any help

sql9.babu
Starting Member

21 Posts

Posted - 2008-02-05 : 21:43:00
when Iam tryng to restore the Transaction log, it is giving error msg like

Msg 3117, Level 16, State 1, Line 1
The log or differential backup cannot be restored because no files are ready to rollforward.
Msg 3013, Level 16, State 1, Line 1
RESTORE LOG is terminating abnormally.

what does this mean's

thanx for any help
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2008-02-05 : 22:01:58
You have to use 'with norecovery' option when restore db.
Go to Top of Page

sql9.babu
Starting Member

21 Posts

Posted - 2008-02-06 : 02:34:09
I used this way, but still giving the same error msg.

restore log Practice
from disk= 'd:\xy1.bak'
with stats=10,replace, norecovery

Msg 3117, Level 16, State 1, Line 1
The log or differential backup cannot be restored because no files are ready to rollforward.
Msg 3013, Level 16, State 1, Line 1
RESTORE LOG is terminating abnormally.

pls suggest me some thing else

Thanx for any help
sql9
Go to Top of Page

ratheeshknair
Posting Yak Master

129 Posts

Posted - 2008-02-06 : 03:35:33
You have to retore a full backup with norecovery before you restore the transaction logs.

RKNAIR
Go to Top of Page

sql9.babu
Starting Member

21 Posts

Posted - 2008-02-06 : 11:13:42
ya I did that,
I restored FULL Backup first, then
Iam trying to restore either DIFFERENTIAL or LOG it is giving that error msg

can you pls check the above given syntax for restoring LOG is correct or any one can pls suggest me regarding the syntax

thanx
sql9
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2008-02-07 : 00:10:46
Can't use replace and norecobery at same time.
Go to Top of Page
   

- Advertisement -