Go Premium for a chance to win a PS4. Enter to Win

x
?
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
Medium Priority
?
276 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
  • 2
4 Comments
 
LVL 25

Assisted Solution

by:DBAduck - Ben Miller
DBAduck - Ben Miller earned 1000 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 1000 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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

When trying to connect from SSMS v17.x to a SQL Server Integration Services 2016 instance or previous version, you get the error “Connecting to the Integration Services service on the computer failed with the following error: 'The specified service …
Ready to get certified? Check out some courses that help you prepare for third-party exams.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
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.

916 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