Saturday, April 16, 2011

Restore history Details for sql databases.....

How do we find restore history details for all databases in the server?
Or single database?

—-for all databases
USE MSDB

GO

SELECT TOP 1 *

FROM RESTOREHISTORY WITH (nolock)
--for individual database include below commands

WHERE (DESTINATION_DATABASE_NAME = ‘dbname’)

ORDER BY RESTORE_DATE DESC

Let me know any other ways?

No comments:

Post a Comment

MYSQL::Setting Validate_Password componet for MySQL Database to ensure password policy settings

Inadequate Password Settings for MySQL Database We observed that the `validate_password%` settings on hostname `<insert hostname>` a...