posted 6/10/2012 9:18:03 AM by prince rastogi - Views: [1494]
To Find out the last database restore information..
Problem:
Sometimes we need such type of information like who restore the backup of live database on test server and on which date and time?
Solution:
We can find out such type of information from SQL Server Logs, But here the person who restore the database also delete the logs, then how can we identify?
Microsoft SQL Server provide msdb database to store all backup and restore information and many more tasks related to sql server agent.
MSDB contain special type of table named as [restorehistory] which store information of all the restore operation.
Use msdb GO Select restore_date, destination_database_name, user_name from restorehistory
Where restore_date = date and time of restoration
Destination_database_name = name of destination database on which restore perform
Username = Name of user who perform the restore operation
If you liked the post, do like us on Facebook at http://www.facebook.com/SQLServerGeeks
Thanks & Regards:
Prince Kumar Rastogi
prince rastogi (Member since: 2/27/2012 5:51:06 PM)
View prince rastogi 's profile
Good one Blog..........
Thank you..
Highly useful ...
Leave a comment