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)
 locate backup and restore all user database's script

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-08-25 : 08:15:26
Christopher writes "Hi,

I am looking for a script that can locate the latest backups for all user databases and restore them all in one go programatically.


Resoring individual is easy, but I am finding interogating the system database for the loction of the latest backup a bit more chalenging.

Its for disaster recovery I can forklift the system databases, to get the server up and running, but I have to restore the rest manually from the backups, I would like to automate this.

Environment is:
Windows 2000 Advanced server SP4
SQL 2000 SP2

Teriffic site I usually find what I want here lots of info and good ideas.
I look forward to your reply,
Many thanks,

Chris Bates"

Kristen
Test

22859 Posts

Posted - 2005-08-25 : 08:30:12
Hi Christopher, Welcome to SQL Team!

This may do the trick:

http://www.databasejournal.com/img/usp_build_restore.sql

Kristen
Go to Top of Page
   

- Advertisement -