{"id":621,"date":"2011-12-12T12:41:19","date_gmt":"2011-12-12T19:41:19","guid":{"rendered":"http:\/\/jim-zimmerman.com\/?p=621"},"modified":"2011-12-13T12:48:52","modified_gmt":"2011-12-13T19:48:52","slug":"restore-ms-sql-database-from-filesystem-backup","status":"publish","type":"post","link":"https:\/\/jim-zimmerman.com\/?p=621","title":{"rendered":"Restore MS SQL database from filesystem backup."},"content":{"rendered":"<p>I found myself having to restore a Microsoft SQL 2000 database using only a file system backup.  I was very cautious about my approach, because I wanted to restore the database to a database with a different name.  I did this by using &#8220;Attach database &#8230;&#8221; from Enterprise Manager.  <\/p>\n<p>Right mouse click on &#8220;Databases&#8221;.<br \/>\nGo to &#8220;All Tasks&#8221;<br \/>\nThen, &#8220;Attach Database&#8230;&#8221;<br \/>\nBrowse to MDF file that you restored (MDF and LDF should be restored from file system backup), by clicking the &#8220;&#8230;&#8221; next to the &#8220;Verify&#8221; button.<br \/>\nThen, database name you want to use for the restored database in the &#8220;Attach as&#8221; field.<br \/>\nThen,  choose the database owner in the &#8220;Specify database owner&#8221; drop down.<\/p>\n<p>It worked great, and was simple.  Of course, I know that I should be doing the restores from a SQL backup, but circumstances came up where that was the only backup I had to work from.  I will probably verify this procedure on a more current version of SQL server and update accordingly. <\/p>\n<p>I decided to go from one extreme to the other.  I installed SQL Server 2012 RCO to try to restore a database from a file system backup.  It is a little different, but basically the same steps.<\/p>\n<p>Right mouse click on &#8220;Databases&#8221; and click &#8220;Attach&#8230;&#8221;<br \/>\nClick the &#8220;Add&#8230;&#8221; button and add the mdf file you restored.<br \/>\nThen double click the name under the &#8220;Attach As&#8221; column heading to restore to a database with a different name.<br \/>\nClick &#8220;Ok&#8221; to finish.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I found myself having to restore a Microsoft SQL 2000 database using only a file system backup. I was very cautious about my approach, because I wanted to restore the database to a database with a different name. I did this by using &#8220;Attach database &#8230;&#8221; from Enterprise Manager. Right mouse click on &#8220;Databases&#8221;. Go [&#038;hellip<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[219,218,98],"class_list":["post-621","post","type-post","status-publish","format-standard","hentry","category-documentation","tag-attach","tag-mssql","tag-restore"],"share_on_mastodon":{"url":"","error":""},"_links":{"self":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/621","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=621"}],"version-history":[{"count":4,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/621\/revisions"}],"predecessor-version":[{"id":626,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/621\/revisions\/626"}],"wp:attachment":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=621"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=621"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}