{"id":327,"date":"2013-08-16T13:17:57","date_gmt":"2013-08-16T18:17:57","guid":{"rendered":"http:\/\/www.sqlfreelancer.com\/blog\/?p=327"},"modified":"2014-03-07T13:34:42","modified_gmt":"2014-03-07T19:34:42","slug":"move-an-on-premise-sql-server-database-to-the-sql-azure-cloud","status":"publish","type":"post","link":"https:\/\/www.sqlfreelancer.com\/blog\/move-an-on-premise-sql-server-database-to-the-sql-azure-cloud\/","title":{"rendered":"Move an On Premise SQL Server Database to the SQL Azure Cloud"},"content":{"rendered":"<p>Most of us have heard of SQL Azure, but a lot of people have yet to adopt the &#8220;cloud&#8221; version of SQL Server. This post will focus on how to move an on premise database to the SQL Azure and Windows Azure VM. To learn how to get started with SQL Azure visit Microsoft&#8217;s Azure site.<\/p>\n<p>Most of us are used to the &#8220;Restore Database&#8221; command found by right clicking the Databases container in SQL Server Management Studio (SSMS). SQL Azure has done away with this and instead only gives you the options below:<\/p>\n<table>\n<tbody>\n<tr>\n<td><span style=\"text-decoration: underline;\">On premise database<\/span><\/td>\n<td><span style=\"text-decoration: underline;\">Azure database<\/span><\/td>\n<\/tr>\n<tr>\n<td>\n<div>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Azure.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter  wp-image-328\" alt=\"SQL Freelancer SQL Server Azure\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Azure.png\" width=\"296\" height=\"231\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Azure.png 354w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Azure-300x234.png 300w\" sizes=\"auto, (max-width: 296px) 100vw, 296px\" \/><\/a><\/p>\n<\/div>\n<\/td>\n<td>\n<div>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Azure-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter  wp-image-329\" alt=\"SQL Freelancer SQL Server Azure\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Azure-1.png\" width=\"340\" height=\"132\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Azure-1.png 442w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Azure-1-300x116.png 300w\" sizes=\"auto, (max-width: 340px) 100vw, 340px\" \/><\/a><\/p>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>This isn&#8217;t very helpful and can make you want to deactivate your Azure subscription immediately, but hold on&#8230;there is a way.<\/p>\n<p>First, you will need to create a storage account from Windows Azure. To do this, log in to Azure and click Storage, New from the left pane:<\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Azure-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-330\" alt=\"SQL Freelancer SQL Server Azure\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Azure-2.png\" width=\"201\" height=\"568\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Azure-2.png 201w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Azure-2-106x300.png 106w\" sizes=\"auto, (max-width: 201px) 100vw, 201px\" \/><\/a><br \/>\nClick Quick Create, Enter a URL and Location, and click Create Storage Account:<\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Azure-3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-331\" alt=\"SQL Freelancer SQL Server Azure\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Azure-3.png\" width=\"624\" height=\"264\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Azure-3.png 624w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Azure-3-300x126.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/a><\/p>\n<p>Once the storage is created you should be able to view and manage it by clicking on the storage item on the left pane.<\/p>\n<p>Click Manage Access Keys and take note of the Storage Account Name and Primary Access Key:<\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Azure-4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-332\" alt=\"SQL Freelancer SQL Server Azure\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Azure-4.png\" width=\"624\" height=\"220\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Azure-4.png 624w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Azure-4-300x105.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/a><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Azure-5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-333\" alt=\"SQL Freelancer SQL Server Azure\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Azure-5.png\" width=\"535\" height=\"409\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Azure-5.png 535w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Azure-5-300x229.png 300w\" sizes=\"auto, (max-width: 535px) 100vw, 535px\" \/><\/a><br \/>\nNext click on the storage name and click Containers, Create a Container:<br \/>\n<a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Azure-6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-334\" alt=\"SQL Freelancer SQL Server Azure\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Azure-6.png\" width=\"624\" height=\"297\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Azure-6.png 624w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Azure-6-300x142.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/a><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Azure-7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-335\" alt=\"SQL Freelancer SQL Server Azure\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Azure-7.png\" width=\"500\" height=\"349\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Azure-7.png 500w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Azure-7-300x209.png 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><br \/>\nBack in SSMS, right click on the database you want to move to the cloud and choose Tasks, Export Data-tier Application:<\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Azure-8.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-336\" alt=\"SQL Freelancer SQL Server Azure\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Azure-8.png\" width=\"624\" height=\"455\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Azure-8.png 624w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Azure-8-300x218.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/a><br \/>\nClick Save to Windows Azure and the Connect&#8230;button.<\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Azure-9.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-337\" alt=\"SQL Freelancer SQL Server Azure\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Azure-9.png\" width=\"624\" height=\"431\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Azure-9.png 624w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2014\/03\/SQL-Server-Azure-9-300x207.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/a><br \/>\n<a href=\"http:\/\/www.mssqltips.com\/sqlservertip\/3007\/move-an-on-premise-sql-server-database-to-the-sql-azure-cloud\/\" target=\"_blank\">Click here to view the rest of this post.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Most of us have heard of SQL Azure, but a lot of people have yet to adopt the &#8220;cloud&#8221; version of SQL Server. This post will focus on how to move an on premise database to the SQL Azure and Windows Azure VM. To learn how to get started with SQL Azure visit Microsoft&#8217;s Azure [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[76],"tags":[77,78],"class_list":["post-327","post","type-post","status-publish","format-standard","hentry","category-azure","tag-azure","tag-cloud"],"_links":{"self":[{"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/posts\/327","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/comments?post=327"}],"version-history":[{"count":2,"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/posts\/327\/revisions"}],"predecessor-version":[{"id":339,"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/posts\/327\/revisions\/339"}],"wp:attachment":[{"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/media?parent=327"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/categories?post=327"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/tags?post=327"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}