{"id":4371,"date":"2019-11-21T05:44:39","date_gmt":"2019-11-21T05:44:39","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=4371"},"modified":"2019-11-21T05:45:12","modified_gmt":"2019-11-21T05:45:12","slug":"how-to-backup-and-restore-a-sql-database","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/how-to-backup-and-restore-a-sql-database","title":{"rendered":"How to backup and restore a SQL Database"},"content":{"rendered":"<p>If the SQL databases are in simple recovery<\/p><p>[pastacode lang=&#8221;sql&#8221; manual=&#8221;Backup%0A%0AALTER%20DATABASE%20dbname%0A%0ASET%20READ_ONLY%3B%0A%0AGO%0A%20%0A%0ABackup%20database%20dbname%0A%0Ato%20disk%20%3D%20&#8217;C%3A%5C&#8230;%5Cdbname.bak&#8217;%0A%0A%20%0ARestore%0A%0A%0ARestore%20database%20dbname%0A%0Afrom%20disk%20%3D%20%20&#8217;C%3A%5C&#8230;%5Cdbname.bak&#8217;%0A%0Awith%20recovery%2C%20replace%0A%0A%20%0A%0AALTER%20DATABASE%20dbname%0A%0ASET%20MULTI_USER%3B%0A%0AGO&#8221; message=&#8221;&#8221; highlight=&#8221;&#8221; provider=&#8221;manual&#8221;\/]<\/p><p>If the databases are in full recovery model<\/p><p>[pastacode lang=&#8221;sql&#8221; manual=&#8221;Backup%0A%0ABackup%20database%20dbname%0A%0Ato%20disk%20%3D%20&#8217;C%3A%5C&#8230;%5Cdbname.bak&#8217;%0A%0ABackup%20log%20dbname%0A%0Ato%20disk%20%3D%20&#8217;C%3A%5C&#8230;%5Cdbname.trn&#8217;%0A%0Awith%20norecovery%0A%0A%20%0ARestore%0A%0A%20%0ARestore%20database%20dbname%0A%0Afrom%20disk%20%3D%20&#8217;C%3A%5C&#8230;%5Cdbname.bak&#8217;%0A%0Awith%20norecovery%2C%20replace%0A%0ARestore%20log%20test2%0A%0Afrom%20disk%20%3D%20&#8217;C%3A%5C&#8230;%5Cdbname.trn&#8217;%0A%0Awith%20recovery%0A%20&#8243; message=&#8221;&#8221; highlight=&#8221;&#8221; provider=&#8221;manual&#8221;\/]<\/p>","protected":false},"excerpt":{"rendered":"<p>If the SQL databases are in simple recovery[pastacode lang=&#8221;sql&#8221; manual=&#8221;Backup%0A%0AALTER%20DATABASE%20dbname%0A%0ASET%20READ_ONLY%3B%0A%0AGO%0A%20%0A%0ABackup%20database%20dbname%0A%0Ato%20disk%20%3D%20&#8217;C%3A%5C&#8230;%5Cdbname.bak&#8217;%0A%0A%20%0ARestore%0A%0A%0ARestore%20database%20dbname%0A%0Afrom%20disk%20%3D%20%20&#8217;C%3A%5C&#8230;%5Cdbname.bak&#8217;%0A%0Awith%20recovery%2C%20replace%0A%0A%20%0A%0AALTER%20DATABASE%20dbname%0A%0ASET%20MULTI_USER%3B%0A%0AGO&#8221; message=&#8221;&#8221; highlight=&#8221;&#8221; provider=&#8221;manual&#8221;\/]If the databases are in full recovery model[pastacode lang=&#8221;sql&#8221; manual=&#8221;Backup%0A%0ABackup%20database%20dbname%0A%0Ato%20disk%20%3D%20&#8217;C%3A%5C&#8230;%5Cdbname.bak&#8217;%0A%0ABackup%20log%20dbname%0A%0Ato%20disk%20%3D%20&#8217;C%3A%5C&#8230;%5Cdbname.trn&#8217;%0A%0Awith%20norecovery%0A%0A%20%0ARestore%0A%0A%20%0ARestore%20database%20dbname%0A%0Afrom%20disk%20%3D%20&#8217;C%3A%5C&#8230;%5Cdbname.bak&#8217;%0A%0Awith%20norecovery%2C%20replace%0A%0ARestore%20log%20test2%0A%0Afrom%20disk%20%3D%20&#8217;C%3A%5C&#8230;%5Cdbname.trn&#8217;%0A%0Awith%20recovery%0A%20&#8243; message=&#8221;&#8221; highlight=&#8221;&#8221; provider=&#8221;manual&#8221;\/]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[736,1106,591],"class_list":["post-4371","post","type-post","status-publish","format-standard","hentry","category-research","tag-backup","tag-restore","tag-sql"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"If the SQL databases are in simple recovery[pastacode lang=&quot;sql&quot; manual=&quot;Backup%0A%0AALTER%20DATABASE%20dbname%0A%0ASET%20READ_ONLY%3B%0A%0AGO%0A%20%0A%0ABackup%20database%20dbname%0A%0Ato%20disk%20%3D%20&#039;C%3A%5C...%5Cdbname.bak&#039;%0A%0A%20%0ARestore%0A%0A%0ARestore%20database%20dbname%0A%0Afrom%20disk%20%3D%20%20&#039;C%3A%5C...%5Cdbname.bak&#039;%0A%0Awith%20recovery%2C%20replace%0A%0A%20%0A%0AALTER%20DATABASE%20dbname%0A%0ASET%20MULTI_USER%3B%0A%0AGO&quot; message=&quot;&quot; highlight=&quot;&quot; provider=&quot;manual&quot;\/]If the databases are in full recovery model[pastacode lang=&quot;sql&quot; manual=&quot;Backup%0A%0ABackup%20database%20dbname%0A%0Ato%20disk%20%3D%20&#039;C%3A%5C...%5Cdbname.bak&#039;%0A%0ABackup%20log%20dbname%0A%0Ato%20disk%20%3D%20&#039;C%3A%5C...%5Cdbname.trn&#039;%0A%0Awith%20norecovery%0A%0A%20%0ARestore%0A%0A%20%0ARestore%20database%20dbname%0A%0Afrom%20disk%20%3D%20&#039;C%3A%5C...%5Cdbname.bak&#039;%0A%0Awith%20norecovery%2C%20replace%0A%0ARestore%20log%20test2%0A%0Afrom%20disk%20%3D%20&#039;C%3A%5C...%5Cdbname.trn&#039;%0A%0Awith%20recovery%0A%20&quot; message=&quot;&quot; highlight=&quot;&quot; provider=&quot;manual&quot;\/]\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"paris\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/pariswells.com\/blog\/research\/how-to-backup-and-restore-a-sql-database\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Welcome to Pariswells.com |\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"How to backup and restore a SQL Database | Welcome to Pariswells.com\" \/>\n\t\t<meta property=\"og:description\" content=\"If the SQL databases are in simple recovery[pastacode lang=&quot;sql&quot; manual=&quot;Backup%0A%0AALTER%20DATABASE%20dbname%0A%0ASET%20READ_ONLY%3B%0A%0AGO%0A%20%0A%0ABackup%20database%20dbname%0A%0Ato%20disk%20%3D%20&#039;C%3A%5C...%5Cdbname.bak&#039;%0A%0A%20%0ARestore%0A%0A%0ARestore%20database%20dbname%0A%0Afrom%20disk%20%3D%20%20&#039;C%3A%5C...%5Cdbname.bak&#039;%0A%0Awith%20recovery%2C%20replace%0A%0A%20%0A%0AALTER%20DATABASE%20dbname%0A%0ASET%20MULTI_USER%3B%0A%0AGO&quot; message=&quot;&quot; highlight=&quot;&quot; provider=&quot;manual&quot;\/]If the databases are in full recovery model[pastacode lang=&quot;sql&quot; manual=&quot;Backup%0A%0ABackup%20database%20dbname%0A%0Ato%20disk%20%3D%20&#039;C%3A%5C...%5Cdbname.bak&#039;%0A%0ABackup%20log%20dbname%0A%0Ato%20disk%20%3D%20&#039;C%3A%5C...%5Cdbname.trn&#039;%0A%0Awith%20norecovery%0A%0A%20%0ARestore%0A%0A%20%0ARestore%20database%20dbname%0A%0Afrom%20disk%20%3D%20&#039;C%3A%5C...%5Cdbname.bak&#039;%0A%0Awith%20norecovery%2C%20replace%0A%0ARestore%20log%20test2%0A%0Afrom%20disk%20%3D%20&#039;C%3A%5C...%5Cdbname.trn&#039;%0A%0Awith%20recovery%0A%20&quot; message=&quot;&quot; highlight=&quot;&quot; provider=&quot;manual&quot;\/]\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/pariswells.com\/blog\/research\/how-to-backup-and-restore-a-sql-database\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-11-21T05:44:39+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2019-11-21T05:45:12+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"How to backup and restore a SQL Database | Welcome to Pariswells.com\" \/>\n\t\t<meta name=\"twitter:description\" content=\"If the SQL databases are in simple recovery[pastacode lang=&quot;sql&quot; manual=&quot;Backup%0A%0AALTER%20DATABASE%20dbname%0A%0ASET%20READ_ONLY%3B%0A%0AGO%0A%20%0A%0ABackup%20database%20dbname%0A%0Ato%20disk%20%3D%20&#039;C%3A%5C...%5Cdbname.bak&#039;%0A%0A%20%0ARestore%0A%0A%0ARestore%20database%20dbname%0A%0Afrom%20disk%20%3D%20%20&#039;C%3A%5C...%5Cdbname.bak&#039;%0A%0Awith%20recovery%2C%20replace%0A%0A%20%0A%0AALTER%20DATABASE%20dbname%0A%0ASET%20MULTI_USER%3B%0A%0AGO&quot; message=&quot;&quot; highlight=&quot;&quot; provider=&quot;manual&quot;\/]If the databases are in full recovery model[pastacode lang=&quot;sql&quot; manual=&quot;Backup%0A%0ABackup%20database%20dbname%0A%0Ato%20disk%20%3D%20&#039;C%3A%5C...%5Cdbname.bak&#039;%0A%0ABackup%20log%20dbname%0A%0Ato%20disk%20%3D%20&#039;C%3A%5C...%5Cdbname.trn&#039;%0A%0Awith%20norecovery%0A%0A%20%0ARestore%0A%0A%20%0ARestore%20database%20dbname%0A%0Afrom%20disk%20%3D%20&#039;C%3A%5C...%5Cdbname.bak&#039;%0A%0Awith%20norecovery%2C%20replace%0A%0ARestore%20log%20test2%0A%0Afrom%20disk%20%3D%20&#039;C%3A%5C...%5Cdbname.trn&#039;%0A%0Awith%20recovery%0A%20&quot; message=&quot;&quot; highlight=&quot;&quot; provider=&quot;manual&quot;\/]\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/how-to-backup-and-restore-a-sql-database#article\",\"name\":\"How to backup and restore a SQL Database | Welcome to Pariswells.com\",\"headline\":\"How to backup and restore a SQL Database\",\"author\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#organization\"},\"datePublished\":\"2019-11-21T05:44:39+00:00\",\"dateModified\":\"2019-11-21T05:45:12+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/how-to-backup-and-restore-a-sql-database#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/how-to-backup-and-restore-a-sql-database#webpage\"},\"articleSection\":\"Research, backup, restore, SQL\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/how-to-backup-and-restore-a-sql-database#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/pariswells.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research#listItem\",\"name\":\"Research\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research#listItem\",\"position\":2,\"name\":\"Research\",\"item\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/how-to-backup-and-restore-a-sql-database#listItem\",\"name\":\"How to backup and restore a SQL Database\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/how-to-backup-and-restore-a-sql-database#listItem\",\"position\":3,\"name\":\"How to backup and restore a SQL Database\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research#listItem\",\"name\":\"Research\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#organization\",\"name\":\"Welcome to Pariswells.com\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris\",\"name\":\"paris\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/how-to-backup-and-restore-a-sql-database#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/93b8ee3f592ac401167f870452bd82d43de80152cd3524e2853403658ada9984?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"paris\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/how-to-backup-and-restore-a-sql-database#webpage\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/how-to-backup-and-restore-a-sql-database\",\"name\":\"How to backup and restore a SQL Database | Welcome to Pariswells.com\",\"description\":\"If the SQL databases are in simple recovery[pastacode lang=\\\"sql\\\" manual=\\\"Backup%0A%0AALTER%20DATABASE%20dbname%0A%0ASET%20READ_ONLY%3B%0A%0AGO%0A%20%0A%0ABackup%20database%20dbname%0A%0Ato%20disk%20%3D%20'C%3A%5C...%5Cdbname.bak'%0A%0A%20%0ARestore%0A%0A%0ARestore%20database%20dbname%0A%0Afrom%20disk%20%3D%20%20'C%3A%5C...%5Cdbname.bak'%0A%0Awith%20recovery%2C%20replace%0A%0A%20%0A%0AALTER%20DATABASE%20dbname%0A%0ASET%20MULTI_USER%3B%0A%0AGO\\\" message=\\\"\\\" highlight=\\\"\\\" provider=\\\"manual\\\"\\\/]If the databases are in full recovery model[pastacode lang=\\\"sql\\\" manual=\\\"Backup%0A%0ABackup%20database%20dbname%0A%0Ato%20disk%20%3D%20'C%3A%5C...%5Cdbname.bak'%0A%0ABackup%20log%20dbname%0A%0Ato%20disk%20%3D%20'C%3A%5C...%5Cdbname.trn'%0A%0Awith%20norecovery%0A%0A%20%0ARestore%0A%0A%20%0ARestore%20database%20dbname%0A%0Afrom%20disk%20%3D%20'C%3A%5C...%5Cdbname.bak'%0A%0Awith%20norecovery%2C%20replace%0A%0ARestore%20log%20test2%0A%0Afrom%20disk%20%3D%20'C%3A%5C...%5Cdbname.trn'%0A%0Awith%20recovery%0A%20\\\" message=\\\"\\\" highlight=\\\"\\\" provider=\\\"manual\\\"\\\/]\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/how-to-backup-and-restore-a-sql-database#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\"},\"datePublished\":\"2019-11-21T05:44:39+00:00\",\"dateModified\":\"2019-11-21T05:45:12+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/\",\"name\":\"Welcome to Pariswells.com\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"How to backup and restore a SQL Database | Welcome to Pariswells.com","description":"If the SQL databases are in simple recovery[pastacode lang=\"sql\" manual=\"Backup%0A%0AALTER%20DATABASE%20dbname%0A%0ASET%20READ_ONLY%3B%0A%0AGO%0A%20%0A%0ABackup%20database%20dbname%0A%0Ato%20disk%20%3D%20'C%3A%5C...%5Cdbname.bak'%0A%0A%20%0ARestore%0A%0A%0ARestore%20database%20dbname%0A%0Afrom%20disk%20%3D%20%20'C%3A%5C...%5Cdbname.bak'%0A%0Awith%20recovery%2C%20replace%0A%0A%20%0A%0AALTER%20DATABASE%20dbname%0A%0ASET%20MULTI_USER%3B%0A%0AGO\" message=\"\" highlight=\"\" provider=\"manual\"\/]If the databases are in full recovery model[pastacode lang=\"sql\" manual=\"Backup%0A%0ABackup%20database%20dbname%0A%0Ato%20disk%20%3D%20'C%3A%5C...%5Cdbname.bak'%0A%0ABackup%20log%20dbname%0A%0Ato%20disk%20%3D%20'C%3A%5C...%5Cdbname.trn'%0A%0Awith%20norecovery%0A%0A%20%0ARestore%0A%0A%20%0ARestore%20database%20dbname%0A%0Afrom%20disk%20%3D%20'C%3A%5C...%5Cdbname.bak'%0A%0Awith%20norecovery%2C%20replace%0A%0ARestore%20log%20test2%0A%0Afrom%20disk%20%3D%20'C%3A%5C...%5Cdbname.trn'%0A%0Awith%20recovery%0A%20\" message=\"\" highlight=\"\" provider=\"manual\"\/]","canonical_url":"https:\/\/pariswells.com\/blog\/research\/how-to-backup-and-restore-a-sql-database","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pariswells.com\/blog\/research\/how-to-backup-and-restore-a-sql-database#article","name":"How to backup and restore a SQL Database | Welcome to Pariswells.com","headline":"How to backup and restore a SQL Database","author":{"@id":"https:\/\/pariswells.com\/blog\/author\/paris#author"},"publisher":{"@id":"https:\/\/pariswells.com\/blog\/#organization"},"datePublished":"2019-11-21T05:44:39+00:00","dateModified":"2019-11-21T05:45:12+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/pariswells.com\/blog\/research\/how-to-backup-and-restore-a-sql-database#webpage"},"isPartOf":{"@id":"https:\/\/pariswells.com\/blog\/research\/how-to-backup-and-restore-a-sql-database#webpage"},"articleSection":"Research, backup, restore, SQL"},{"@type":"BreadcrumbList","@id":"https:\/\/pariswells.com\/blog\/research\/how-to-backup-and-restore-a-sql-database#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/pariswells.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/category\/research#listItem","name":"Research"}},{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/category\/research#listItem","position":2,"name":"Research","item":"https:\/\/pariswells.com\/blog\/category\/research","nextItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/research\/how-to-backup-and-restore-a-sql-database#listItem","name":"How to backup and restore a SQL Database"},"previousItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/research\/how-to-backup-and-restore-a-sql-database#listItem","position":3,"name":"How to backup and restore a SQL Database","previousItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/category\/research#listItem","name":"Research"}}]},{"@type":"Organization","@id":"https:\/\/pariswells.com\/blog\/#organization","name":"Welcome to Pariswells.com","url":"https:\/\/pariswells.com\/blog\/"},{"@type":"Person","@id":"https:\/\/pariswells.com\/blog\/author\/paris#author","url":"https:\/\/pariswells.com\/blog\/author\/paris","name":"paris","image":{"@type":"ImageObject","@id":"https:\/\/pariswells.com\/blog\/research\/how-to-backup-and-restore-a-sql-database#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/93b8ee3f592ac401167f870452bd82d43de80152cd3524e2853403658ada9984?s=96&d=mm&r=g","width":96,"height":96,"caption":"paris"}},{"@type":"WebPage","@id":"https:\/\/pariswells.com\/blog\/research\/how-to-backup-and-restore-a-sql-database#webpage","url":"https:\/\/pariswells.com\/blog\/research\/how-to-backup-and-restore-a-sql-database","name":"How to backup and restore a SQL Database | Welcome to Pariswells.com","description":"If the SQL databases are in simple recovery[pastacode lang=\"sql\" manual=\"Backup%0A%0AALTER%20DATABASE%20dbname%0A%0ASET%20READ_ONLY%3B%0A%0AGO%0A%20%0A%0ABackup%20database%20dbname%0A%0Ato%20disk%20%3D%20'C%3A%5C...%5Cdbname.bak'%0A%0A%20%0ARestore%0A%0A%0ARestore%20database%20dbname%0A%0Afrom%20disk%20%3D%20%20'C%3A%5C...%5Cdbname.bak'%0A%0Awith%20recovery%2C%20replace%0A%0A%20%0A%0AALTER%20DATABASE%20dbname%0A%0ASET%20MULTI_USER%3B%0A%0AGO\" message=\"\" highlight=\"\" provider=\"manual\"\/]If the databases are in full recovery model[pastacode lang=\"sql\" manual=\"Backup%0A%0ABackup%20database%20dbname%0A%0Ato%20disk%20%3D%20'C%3A%5C...%5Cdbname.bak'%0A%0ABackup%20log%20dbname%0A%0Ato%20disk%20%3D%20'C%3A%5C...%5Cdbname.trn'%0A%0Awith%20norecovery%0A%0A%20%0ARestore%0A%0A%20%0ARestore%20database%20dbname%0A%0Afrom%20disk%20%3D%20'C%3A%5C...%5Cdbname.bak'%0A%0Awith%20norecovery%2C%20replace%0A%0ARestore%20log%20test2%0A%0Afrom%20disk%20%3D%20'C%3A%5C...%5Cdbname.trn'%0A%0Awith%20recovery%0A%20\" message=\"\" highlight=\"\" provider=\"manual\"\/]","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/pariswells.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/pariswells.com\/blog\/research\/how-to-backup-and-restore-a-sql-database#breadcrumblist"},"author":{"@id":"https:\/\/pariswells.com\/blog\/author\/paris#author"},"creator":{"@id":"https:\/\/pariswells.com\/blog\/author\/paris#author"},"datePublished":"2019-11-21T05:44:39+00:00","dateModified":"2019-11-21T05:45:12+00:00"},{"@type":"WebSite","@id":"https:\/\/pariswells.com\/blog\/#website","url":"https:\/\/pariswells.com\/blog\/","name":"Welcome to Pariswells.com","inLanguage":"en-US","publisher":{"@id":"https:\/\/pariswells.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Welcome to Pariswells.com |","og:type":"article","og:title":"How to backup and restore a SQL Database | Welcome to Pariswells.com","og:description":"If the SQL databases are in simple recovery[pastacode lang=&quot;sql&quot; manual=&quot;Backup%0A%0AALTER%20DATABASE%20dbname%0A%0ASET%20READ_ONLY%3B%0A%0AGO%0A%20%0A%0ABackup%20database%20dbname%0A%0Ato%20disk%20%3D%20'C%3A%5C...%5Cdbname.bak'%0A%0A%20%0ARestore%0A%0A%0ARestore%20database%20dbname%0A%0Afrom%20disk%20%3D%20%20'C%3A%5C...%5Cdbname.bak'%0A%0Awith%20recovery%2C%20replace%0A%0A%20%0A%0AALTER%20DATABASE%20dbname%0A%0ASET%20MULTI_USER%3B%0A%0AGO&quot; message=&quot;&quot; highlight=&quot;&quot; provider=&quot;manual&quot;\/]If the databases are in full recovery model[pastacode lang=&quot;sql&quot; manual=&quot;Backup%0A%0ABackup%20database%20dbname%0A%0Ato%20disk%20%3D%20'C%3A%5C...%5Cdbname.bak'%0A%0ABackup%20log%20dbname%0A%0Ato%20disk%20%3D%20'C%3A%5C...%5Cdbname.trn'%0A%0Awith%20norecovery%0A%0A%20%0ARestore%0A%0A%20%0ARestore%20database%20dbname%0A%0Afrom%20disk%20%3D%20'C%3A%5C...%5Cdbname.bak'%0A%0Awith%20norecovery%2C%20replace%0A%0ARestore%20log%20test2%0A%0Afrom%20disk%20%3D%20'C%3A%5C...%5Cdbname.trn'%0A%0Awith%20recovery%0A%20&quot; message=&quot;&quot; highlight=&quot;&quot; provider=&quot;manual&quot;\/]","og:url":"https:\/\/pariswells.com\/blog\/research\/how-to-backup-and-restore-a-sql-database","article:published_time":"2019-11-21T05:44:39+00:00","article:modified_time":"2019-11-21T05:45:12+00:00","twitter:card":"summary","twitter:title":"How to backup and restore a SQL Database | Welcome to Pariswells.com","twitter:description":"If the SQL databases are in simple recovery[pastacode lang=&quot;sql&quot; manual=&quot;Backup%0A%0AALTER%20DATABASE%20dbname%0A%0ASET%20READ_ONLY%3B%0A%0AGO%0A%20%0A%0ABackup%20database%20dbname%0A%0Ato%20disk%20%3D%20'C%3A%5C...%5Cdbname.bak'%0A%0A%20%0ARestore%0A%0A%0ARestore%20database%20dbname%0A%0Afrom%20disk%20%3D%20%20'C%3A%5C...%5Cdbname.bak'%0A%0Awith%20recovery%2C%20replace%0A%0A%20%0A%0AALTER%20DATABASE%20dbname%0A%0ASET%20MULTI_USER%3B%0A%0AGO&quot; message=&quot;&quot; highlight=&quot;&quot; provider=&quot;manual&quot;\/]If the databases are in full recovery model[pastacode lang=&quot;sql&quot; manual=&quot;Backup%0A%0ABackup%20database%20dbname%0A%0Ato%20disk%20%3D%20'C%3A%5C...%5Cdbname.bak'%0A%0ABackup%20log%20dbname%0A%0Ato%20disk%20%3D%20'C%3A%5C...%5Cdbname.trn'%0A%0Awith%20norecovery%0A%0A%20%0ARestore%0A%0A%20%0ARestore%20database%20dbname%0A%0Afrom%20disk%20%3D%20'C%3A%5C...%5Cdbname.bak'%0A%0Awith%20norecovery%2C%20replace%0A%0ARestore%20log%20test2%0A%0Afrom%20disk%20%3D%20'C%3A%5C...%5Cdbname.trn'%0A%0Awith%20recovery%0A%20&quot; message=&quot;&quot; highlight=&quot;&quot; provider=&quot;manual&quot;\/]"},"aioseo_meta_data":{"post_id":"4371","title":null,"description":null,"keywords":null,"keyphrases":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2020-12-21 05:28:51","updated":"2022-09-20 04:49:31","primary_term":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/pariswells.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/pariswells.com\/blog\/category\/research\" title=\"Research\">Research<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow to backup and restore a SQL Database\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/pariswells.com\/blog"},{"label":"Research","link":"https:\/\/pariswells.com\/blog\/category\/research"},{"label":"How to backup and restore a SQL Database","link":"https:\/\/pariswells.com\/blog\/research\/how-to-backup-and-restore-a-sql-database"}],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/4371","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=4371"}],"version-history":[{"count":2,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/4371\/revisions"}],"predecessor-version":[{"id":4373,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/4371\/revisions\/4373"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=4371"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=4371"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=4371"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}