USE msdb; SELECT DBRestored = destination_database_name ,RestoreDate = restore_date ,SourceDB = b.database_name ,SourceFile = physical_name ,BackupDate = backup_start_date FROM RestoreHistory h INNER JOIN BackupSet b ON h.backup_set_id = b.backup_set_id INNER JOIN BackupFile f ON f.backup_set_id = b.backup_set_id ORDER BY RestoreDate
Showing posts with label source. Show all posts
Showing posts with label source. Show all posts
Tuesday, September 23, 2014
Script to find date and details when database was restored in SQL Server
Subscribe to:
Posts (Atom)