SQL Log Restores (No Full Backups)

I'm trying to setup an environment where I can restore log files from a primary database to a secondary database (different servers) every 30 minutes.  I do not want to have to restore a full backup each time.  This secondary database will be used as a read-only instances as well. At this point I'm getting an error "The log or differential backup cannot be restored because no files are ready to rollforward."  I understand that this is maybe because the database is in recovery mode at the time.

Any help would be greatly appreciated.
Oh, the SQL Versions are both 2016.

thanks,
John.
LVL 4
Thunder724Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Vitor MontalvãoMSSQL Senior EngineerCommented:
The solution you want is available natively in SQL Server and it's called Log Shipping.
0
Thunder724Author Commented:
HI Vitor,
I need to restore the log files without creating any kind of connection between the primary and secondary database/instances.  In our situation we have access, only, to the log files, and not the SQL Instance of the primary.
0
Vitor MontalvãoMSSQL Senior EngineerCommented:
Still the same requirements for Log Shipping. Only thing that it needs is access to a file share where the transaction log backups will be stored.
0
Powerful Yet Easy-to-Use Network Monitoring

Identify excessive bandwidth utilization or unexpected application traffic with SolarWinds Bandwidth Analyzer Pack.

Thunder724Author Commented:
Ok, that's good news.  I think the problem I may be having is that when I initially restored the full backup I did not put it into Standby Mode.  I'll have to try that again.
0
Vitor MontalvãoMSSQL Senior EngineerCommented:
Yes, you'll need to put the replicated database in Standby Mode if you need to access to the database.
Remove the Standby Mode so you can apply next transaction log restore.
0
Thunder724Author Commented:
Yup, that makes sense and it works.  My only question is that when I put it into NoRecovery mode the transaction log restore wont restore objects that have changed.
0
Vitor MontalvãoMSSQL Senior EngineerCommented:
Do you get any error message during the restore when that happens?
0
Thunder724Author Commented:
Nothing other than a comment, not an error, stating that it can't restore objects because it does not have write permissions.  Although it states that it did restore a certain number of pages.
0
Vitor MontalvãoMSSQL Senior EngineerCommented:
Please post the full message here. It may have some clue for me.
0
Vitor MontalvãoMSSQL Senior EngineerCommented:
Thunder did you abandoned this question?
0
Thunder724Author Commented:
I'm sorry if I didn't get back to this question.  Thought I did.  I ended up working it out and my log shipping is working fine. The only thing I'm trying figure out is if it is possible to get object changes restored to database from transaction logs.  I'm leaving the database in Standby (read-only).  When restoring the trans logs I place it into NoRecovery first, than back to standby.
0
Vitor MontalvãoMSSQL Senior EngineerCommented:
I'm leaving the database in Standby (read-only).  When restoring the trans logs I place it into NoRecovery first, than back to standby.
That's the correct way to do it. You should get all changes after restoring the last transaction log backups.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Databases

From novice to tech pro — start learning today.