Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Numerous TLogs to restore

Author  Topic 

cgunner
Yak Posting Veteran

95 Posts

Posted - 2006-03-12 : 08:41:43
Does anyone have a script that will reference a particular directory and apply all the transaction logs in that directory to a database. I have a couple of thousand transaction logs that I need to apply to a database.

Thrasymachus
Constraint Violating Yak Guru

483 Posts

Posted - 2006-03-12 : 12:42:26
here you go...

http://www.dbforums.com/showthread.php?t=1210442&highlight=Sean+Roussy

====================================================
Regards,
Sean Roussy

aka the merciless black hearted capitalist troublemaker

"pimpin ain't easy, but someone has to do it" -- Pimpin Whitefolks(?)
Go to Top of Page

nr
SQLTeam MVY

12543 Posts

Posted - 2006-03-12 : 13:09:48
see
http://www.nigelrivett.net/SQLAdmin/s_RestoreDatabase.html

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)

7020 Posts

Posted - 2006-03-12 : 15:04:03
Why do you have to apply that many transaction logs?

Even if you do them every 5 minutes, 2000 would be a weeks worth of tranaction logs.




CODO ERGO SUM
Go to Top of Page

eyechart
Master Smack Fu Yak Hacker

3575 Posts

Posted - 2006-03-12 : 15:18:35
quote:
Originally posted by Michael Valentine Jones

Why do you have to apply that many transaction logs?

Even if you do them every 5 minutes, 2000 would be a weeks worth of tranaction logs.




playing all the logs will probably take a week.

If you don't do frequent full backups, then periodic differentials are probably a good idea.



-ec
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2006-03-13 : 04:00:38
There's a script to restore multiple logs at

http://www.sqlservercentral.com/scripts/contributions/1194.asp

too which is discussed here:

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=60109

Kristen
Go to Top of Page
   

- Advertisement -