Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Find a backup file with timestqamp name in its name

Status
Not open for further replies.

TruthAndBeauty

Technical User
Jun 4, 2001
38
US
My SQL database ("Site1db") is backed up to disk and automatically given a name that includes a timestamp (i.e., Site1db200201222130.bak"). I want to use the latest backup file forsite1db to restore a similar db ('Site2db") at a different location.
To setup a job to restore "Site2db" I need to be able to identify the latest Site1db backup file as the source file for the backup.

I'm investigating the system tables for a solution. Perhaps there are Command codes. Any suggestions are appreciated????

Thanks for taking the time.

Robert



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top