SQL Server and MySQL Notes
Pages
Home
Contact Me
All Articles
Author Profile
Download Links
How to be DBA?
Thursday, July 16, 2009
How to find database restore history from MSDB?
You can use the below query to get the particular database restore history.
SELECT
TOP
10
*
FROM
restorehistory
WITH
(
nolock
)
WHERE
(
destination_database_name
=
'Database Name'
)
ORDER
BY
restore_date
DESC
All Databases
SELECT
TOP
10
*
FROM
restorehistory
WITH
(
nolock
)
ORDER
BY
restore_date
DESC
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment