{"id":10,"date":"2014-04-30T17:52:46","date_gmt":"2014-04-30T17:52:46","guid":{"rendered":"http:\/\/www.sqlgeometry.com\/?p=10"},"modified":"2014-05-06T00:07:34","modified_gmt":"2014-05-06T00:07:34","slug":"mssql-database-restore-history-simple-query","status":"publish","type":"post","link":"https:\/\/www.sqlgeometry.com\/?p=10","title":{"rendered":"MSSQL Database Restore History simple query"},"content":{"rendered":"<p>After reading several posts on the internet for discovering database restoration history, I realized that most were way over complicating what you can do in SQL 20008R2 and up.<\/p>\n<p>This is the easiest method for me:<\/p>\n<p>use msdb<br \/>\nselect * from restorehistory<\/p>\n<p>And that is pretty much it.<\/p>\n<p>However, I do have one server that is making me scratch my head. The restorehistory table is empty, but the logs clearly show that I had several restores in the last 3 months. Hmmm.<\/p>\n<p>UPDATE:<\/p>\n<p>OK I feel rather stupid about this. Of course the restore history is empty, I am cleaning it up with part of my maintenance plan!<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After reading several posts on the internet for discovering database restoration history, I realized that most were way over complicating what you can do in SQL 20008R2 and up. This is the easiest method for me: use msdb select * from restorehistory And that is pretty much it. However, I do have one server that &hellip; <a href=\"https:\/\/www.sqlgeometry.com\/?p=10\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">MSSQL Database Restore History simple query<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-10","post","type-post","status-publish","format-standard","hentry","category-sql-admin"],"_links":{"self":[{"href":"https:\/\/www.sqlgeometry.com\/index.php?rest_route=\/wp\/v2\/posts\/10","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sqlgeometry.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sqlgeometry.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sqlgeometry.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sqlgeometry.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10"}],"version-history":[{"count":3,"href":"https:\/\/www.sqlgeometry.com\/index.php?rest_route=\/wp\/v2\/posts\/10\/revisions"}],"predecessor-version":[{"id":13,"href":"https:\/\/www.sqlgeometry.com\/index.php?rest_route=\/wp\/v2\/posts\/10\/revisions\/13"}],"wp:attachment":[{"href":"https:\/\/www.sqlgeometry.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sqlgeometry.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sqlgeometry.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}