x

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 76 79 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.

New code box

There's a new way to format code on the site - the red speech bubble logo will automatically format T-SQL for you. The original code box is still there for XML, etc. More details here.

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

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.

Topics:

x341
x101
x63

asked: Oct 21 '09 at 12:12 PM

Seen: 2219 times

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