Solved

Why does the copying and restoring jobs skip a bunch of already restored files before it finds the right one in log shipping in sql server 2008

Posted on 2011-09-21
4
273 Views
Last Modified: 2012-05-12
Why does the copying and restoring jobs skip a bunch of already restored files before it finds the right one in log shipping in sql server 2008  
0
Comment
Question by:fiveguys
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 24

Assisted Solution

by:DBAduck - Ben Miller
DBAduck - Ben Miller earned 250 total points
ID: 36577886
Mostly because it knows what the LSN is and that it has already restored it.  That is part of the black box of sqllogship.exe.  If there are multiple files in the directory where the copy lands, then it will need to try those out.  There is no context that I know of during the restore process of the job.
0
 
LVL 2

Assisted Solution

by:marappan
marappan earned 250 total points
ID: 36582645
There is a table in msdb database that stores last restored file and last copied file. So, SQL Server job knows to skip the files already copied and restored. The table name should start with log_ship
0
 

Accepted Solution

by:
fiveguys earned 0 total points
ID: 36601066
the monitor server was not in the same box and it was in a different domain. So it did not record the last restored or last backed up file. So it started copying every file and skipping the ones those were not restored.
0
 

Author Closing Comment

by:fiveguys
ID: 36895881
the monitor server was not in the same box and it was in a different domain. So it did not record the last restored or last backed up file. So it started copying every file and skipping the ones those were not restored.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question