x
login about faq Site discussion (meta-askssc)

Restoring a set of transaction logs

Hi,

I was wondering whether there is not a way to restore a set of transaction logs in one big swoop as opposed to restoring one transaction log at a time.

Many thanks

mike

P.S. This is for SQL Server 2000.

more ▼

asked Oct 21 '09 at 12:12 PM in Default

Mike gravatar image

Mike
21 1 1 2

(comments are locked)
10|1200 characters needed characters left

2 answers: sort voted first

You can restore a set of transaction logs, but you must restore them in order. See this link for restoring transaction logs: http://msdn.microsoft.com/en-us/library/ms177446.aspx

The system will restore them one at a time, in order, but that is the nature of the transaction logs.

more ▼

answered Oct 21 '09 at 12:26 PM

NYSystemsAnalyst gravatar image

NYSystemsAnalyst
312 5 5 6

(comments are locked)
10|1200 characters needed characters left

You can write a script that reads the MSDB, or uses the filestamps (or filenames) and executes the restores in order. Here's a sample: http://www.sqlservercentral.com/scripts/Restore/61810/

more ▼

answered Oct 21 '09 at 12:48 PM

Steve Jones - Editor gravatar image

Steve Jones - Editor ♦♦
5.1k 74 78 82

That script is awesome. Exactly what I was looking for. Many thanks for the link.

Oct 21 '09 at 04:14 PM Mike
(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments



Facebook logo Follow Ask SSC on Facebook
Find Ask SSC on Google+
linkedin logo Find us on LinkedIn

Topics:

x272
x95
x57

asked: Oct 21 '09 at 12:12 PM

Seen: 1351 times

Last Updated: Oct 21 '09 at 12:33 PM

Copyright © 2002-2012 Simple Talk Publishing. All Rights Reserved. If you have any queries, please contact the site administrators.
Ask SQL Server Central is a community service provided by Red Gate.