0

I have no problem with restoring database programatically (in C# using SMO) from backup containing one file. But when the backup contains multiple files (full and differential backups) I get the following error

The log or differential backup cannot be restored because no files are ready to rollforward

So what should I do to restore database with the latest data?

2
  • How are the files laballed? If all your files were mydb.bak then no it wont know which order to do them. as only 1 can exist any point in time.. Commented Aug 28, 2012 at 10:49
  • In a backup file set there are multiple files named 'mydb-differential database backup', 'mydb-full database backup' and so on Commented Aug 28, 2012 at 10:53

1 Answer 1

1

You will need to set the NoRecovery Option so that it will allow you to restore the rest of the files.

Check this for reference.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.