Log Shipped Database left restoring
simmonsj_98
Posts: 18
I am trying to set up log shipping and have the following problem. The log is copied and restored, and move into the processed folder. If I execute RESTORE DATABASE <name> WITH RECOVERT it will go into an operational state. The problem is that after a log is restore it stays in a restore state, and doesn’t go into a Standby/Readonly state. Anyone else seen this, or have any ideas of what I may be doing wrong?
Comments
If you have already set up the log shipping process, then on the secondary server, you can edit the restore job, and edit the restore process to use the STANDBY option e.g.
from
EXEC master..sqlbackup '-sql "RESTORE LOG ... WITH ... NORECOVERY ..." '
to
EXEC master..sqlbackup '-sql "RESTORE LOG ... WITH ... STANDBY = [g:\AdventureWorks.und] ..." '
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8