{"id":12413,"date":"2019-05-03T09:34:17","date_gmt":"2019-05-03T07:34:17","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/how-to-migrate-from-on-premise-to-an-azure-sql-database\/"},"modified":"2019-05-03T09:34:17","modified_gmt":"2019-05-03T07:34:17","slug":"how-to-migrate-from-on-premise-to-an-azure-sql-database","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/how-to-migrate-from-on-premise-to-an-azure-sql-database\/","title":{"rendered":"How to migrate from on-premise to an Azure SQL Database"},"content":{"rendered":"<p>As a SQL Server DBA we have the habit to migrate databases from an instance to another one or to a new environment.<br \/>\nBut migrate a database from on-premise to the Azure Cloud is an operation that we don\u2019t deal with every day.<\/p>\n<p>As a reminder, Azure SQL Database is a relational database-as-a-service (DBaaS) which gives the ability to manage your databases directly from the Cloud with the performance of your choose, reliability, security and in the same time get rid of relying infrastructure.<\/p>\n<p>In this blog, I will show you some possibilities of database migration from on-premise to an Azure SQL Database.<\/p>\n<p>&nbsp;<\/p>\n<h1>Via SSMS<\/h1>\n<p>The first one is directly from your SQL environment via SQL Server Management Studio.<br \/>\nClick on a database and select \u201cDeploy Database to Microsoft Azure SQL Database\u201d:<\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-32124\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB1.jpg\" alt=\"\" width=\"300\" height=\"221\" \/><\/a><\/p>\n<p>Once done we have to specify the Microsoft Azure SQL Database Server where our database will be migrated:<\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-32125\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB2.jpg\" alt=\"\" width=\"300\" height=\"273\" \/><\/a><\/p>\n<p>Click on Connect and enter the server name you have already created in the Azure Cloud with the server admin login:<\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB3.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-32138\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB3.jpg\" alt=\"\" width=\"300\" height=\"272\" \/><\/a><\/p>\n<p>Once connected we have to select the Azure SQL Database settings. It means the service tiers we want to select for our database. This is in fact the business continuity, storage, and performance requirements we want for our database. I will choose a small one with a Standard Edition of Microsoft Azure SQL Database, a maximum database size of 1 GB and a service objective S0 (10 DTUs).<br \/>\nClick Next:<\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB4.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-32119\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB4.jpg\" alt=\"\" width=\"300\" height=\"272\" \/><\/a><\/p>\n<p>Review the specified settings and click Finish to start the deployment of our on-premise database to an Azure SQL Database.<\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB5.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-32120\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB5.jpg\" alt=\"\" width=\"300\" height=\"273\" \/><\/a><\/p>\n<p>Exporting tasks are running:<\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB6.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-32121\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB6.jpg\" alt=\"\" width=\"300\" height=\"273\" \/><\/a><\/p>\n<p>Export is finished:<\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB7.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-32122\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB7.jpg\" alt=\"\" width=\"300\" height=\"273\" \/><\/a><\/p>\n<p>The database is Online in our Azure dashboard:<\/p>\n<h1><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB8.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-32123\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB8.jpg\" alt=\"\" width=\"300\" height=\"99\" \/><\/a><\/h1>\n<p>And also connectable via SSMS:<\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB9.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-32161\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB9.jpg\" alt=\"\" width=\"300\" height=\"281\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h1>Import via a BACPAC file<\/h1>\n<p>On Management Studio select the database you want to migrate, right click on it and select \u201cExport Data-tier application\u201d:<\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB2-1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-32126\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB2-1.jpg\" alt=\"\" width=\"300\" height=\"216\" \/><\/a><\/p>\n<p>Save the bacpac file locally and click Next:<\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB2-2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-32127\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB2-2.jpg\" alt=\"\" width=\"300\" height=\"273\" \/><\/a><\/p>\n<p>Verify the export settings and click Finish to create the bacpac file:<\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB2-3.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-32128\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB2-3.jpg\" alt=\"\" width=\"300\" height=\"273\" \/><\/a><\/p>\n<p>Process is running:<\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB2-4.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-32129\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB2-4.jpg\" alt=\"\" width=\"300\" height=\"273\" \/><\/a><\/p>\n<p>Exporting database in a bacpac file has succeeded:<\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB2-5.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-32130\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB2-5.jpg\" alt=\"\" width=\"300\" height=\"273\" \/><\/a><\/p>\n<p>Now to import the bacpac file in Azure and create an Azure SQL Database, we have to connect to our Azure server via SSMS. In the Object Explorer pane, right-click on the Databases folder and select \u201cImport Data-tier Application\u201d:<\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB2-6.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-32131\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB2-6.jpg\" alt=\"\" width=\"300\" height=\"148\" \/><\/a><\/p>\n<p>Once done, browse the local disk to find the bacpac file and click Next:<\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB2-7.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-32132\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB2-7.jpg\" alt=\"\" width=\"300\" height=\"273\" \/><\/a><\/p>\n<p>Select a new name for the database and give settings for our new Azure SQL Database (we keep the same database settings):<\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB2-8.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-32133\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB2-8.jpg\" alt=\"\" width=\"300\" height=\"273\" \/><\/a><\/p>\n<p>Review the settings and click Finish to start the import process:<\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB2-9.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-32134\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB2-9.jpg\" alt=\"\" width=\"300\" height=\"273\" \/><\/a><\/p>\n<p>Once finished I have a succeed message:<\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB2-10.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-32135\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB2-10.jpg\" alt=\"\" width=\"300\" height=\"273\" \/><\/a><\/p>\n<p>I can see my new database in SSMS and in my Azure dashboard:<\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB2-11.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-32136\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB2-11.jpg\" alt=\"\" width=\"300\" height=\"185\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB2-12.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-32137\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB2-12.jpg\" alt=\"\" width=\"300\" height=\"91\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h1>Database Migration Assistant<\/h1>\n<p>Database migration assistant can create an assessment to know if a specific database can be easily exported to an Azure SQL Database and during a second step migrates the database.<br \/>\nLet see how it\u2019s working.<\/p>\n<p>Open Database Migration Assistant, click on the \u201cNew\u201d Menu and select Assessment as Project type. Enter a project name and click the \u201cCreate\u201d button:<\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB3-1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-32139\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB3-1.jpg\" alt=\"\" width=\"300\" height=\"156\" \/><\/a><\/p>\n<p>Keep the selected report type, this will check the database compatibility and check feature parity and click Next:<\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB3-2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-32140\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB3-2.jpg\" alt=\"\" width=\"300\" height=\"156\" \/><\/a><\/p>\n<p>Connect to a server, select one or multiple databases and add it\/them to the project:<\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB3-3.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-32141\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB3-3.jpg\" alt=\"\" width=\"300\" height=\"156\" \/><\/a><\/p>\n<p>Start the assessment:<\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB3-4.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-32142\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB3-4.jpg\" alt=\"\" width=\"300\" height=\"156\" \/><\/a><\/p>\n<p>Once done we have a list of Unsupported and partially-supported features for SQL Server parity.<br \/>\nWe have for Compatibility issues: migration blockers, behavior changes, deprecated features and information issues.<br \/>\nAll those issues have to be taken into consideration before the migration.<br \/>\nMigration can be done without any changes but the database will not be 100% usable.<\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB3-5.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-32143\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB3-5.jpg\" alt=\"\" width=\"300\" height=\"148\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB3-6.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-32144\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB3-6.jpg\" alt=\"\" width=\"300\" height=\"148\" \/><\/a><\/p>\n<p>Despite the assessment which shows that our database is not 100% compatible with Azure SQL Database let\u2019s continue and try a migration project.<br \/>\nSelect Migration as Project type and add a project name.<br \/>\nClick the \u201cCreate\u201d button:<\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB3-7.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-32145\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB3-7.jpg\" alt=\"\" width=\"261\" height=\"300\" \/><\/a><\/p>\n<p>Connect to the source server and select the database to migrate. Click the \u201cNext\u201d button:<\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB3-8.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-32146\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB3-8.jpg\" alt=\"\" width=\"300\" height=\"148\" \/><\/a><\/p>\n<p>Connect to the target server located in the Cloud (the one we created here) and select the Azure SQL Database we created empty during my previous blog:<\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB3-9.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-32147\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB3-9.jpg\" alt=\"\" width=\"300\" height=\"161\" \/><\/a><\/p>\n<p>In this screen we can select schema objects that we want to migrate to Azure SQL Database. We can see that we have some validation issues as shown before by the assessment.<br \/>\nClick on the \u201cGenerate SQL Script\u201d button:<br \/>\nAs written I will migrate all objects as blockers can be fixed later.<\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB3-10.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-32148\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB3-10.jpg\" alt=\"\" width=\"300\" height=\"161\" \/><\/a><\/p>\n<p>The script for the select schema objects has been generated, click the \u201cDeploy schema\u201d button to deploy the schema to the Azure SQL Database:<\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB3-11.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-32149\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB3-11.jpg\" alt=\"\" width=\"300\" height=\"161\" \/><\/a><\/p>\n<p>We can now migrate the data by clicking the \u201cMigrate Data\u201d button:<\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB3-12.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-32150\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB3-12.jpg\" alt=\"\" width=\"300\" height=\"161\" \/><\/a><\/p>\n<p>Let all tables selected and click \u201cStart data migration\u201d:<\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB3-13.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-32151\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB3-13.jpg\" alt=\"\" width=\"300\" height=\"161\" \/><\/a><\/p>\n<p>Data for the 3 tables have been migrated successfully:<\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB3-14.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-32117\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB3-14.jpg\" alt=\"\" width=\"300\" height=\"157\" \/><\/a><\/p>\n<p>I can now browse my Azure SQL database in my Management Studio on-premise. All my objects are available and my tables are filled with my data:<\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB3-15.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-32118\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB3-15.jpg\" alt=\"\" width=\"300\" height=\"169\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>It was 3 possibilities to migrate an on-premise database to an Azure SQL Database.<br \/>\nI hope it can help &#x1f609;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As a SQL Server DBA we have the habit to migrate databases from an instance to another one or to a new environment. But migrate a database from on-premise to the Azure Cloud is an operation that we don\u2019t deal with every day. As a reminder, Azure SQL Database is a relational database-as-a-service (DBaaS) which [&hellip;]<\/p>\n","protected":false},"author":21,"featured_media":12448,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[955,198],"tags":[1338,1616,1613,1617,15],"type_dbi":[],"class_list":["post-12413","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud","category-database-management","tag-azure","tag-azure-migration","tag-azure-sql-database","tag-data-migration-assistant","tag-migration"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to migrate from on-premise to an Azure SQL Database - dbi Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbi-services.com\/blog\/how-to-migrate-from-on-premise-to-an-azure-sql-database\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to migrate from on-premise to an Azure SQL Database\" \/>\n<meta property=\"og:description\" content=\"As a SQL Server DBA we have the habit to migrate databases from an instance to another one or to a new environment. But migrate a database from on-premise to the Azure Cloud is an operation that we don\u2019t deal with every day. As a reminder, Azure SQL Database is a relational database-as-a-service (DBaaS) which [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/how-to-migrate-from-on-premise-to-an-azure-sql-database\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi Blog\" \/>\n<meta property=\"article:published_time\" content=\"2019-05-03T07:34:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB3-14.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1817\" \/>\n\t<meta property=\"og:image:height\" content=\"951\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"St\u00e9phane Savorgnano\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"St\u00e9phane Savorgnano\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/how-to-migrate-from-on-premise-to-an-azure-sql-database\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/how-to-migrate-from-on-premise-to-an-azure-sql-database\/\"},\"author\":{\"name\":\"St\u00e9phane Savorgnano\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/b6bce7d75118b35bdb3b439ad6a9ca3c\"},\"headline\":\"How to migrate from on-premise to an Azure SQL Database\",\"datePublished\":\"2019-05-03T07:34:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/how-to-migrate-from-on-premise-to-an-azure-sql-database\/\"},\"wordCount\":840,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/how-to-migrate-from-on-premise-to-an-azure-sql-database\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB3-14.jpg\",\"keywords\":[\"Azure\",\"Azure Migration\",\"Azure SQL Database\",\"Data Migration Assistant\",\"Migration\"],\"articleSection\":[\"Cloud\",\"Database management\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/how-to-migrate-from-on-premise-to-an-azure-sql-database\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/how-to-migrate-from-on-premise-to-an-azure-sql-database\/\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/how-to-migrate-from-on-premise-to-an-azure-sql-database\/\",\"name\":\"How to migrate from on-premise to an Azure SQL Database - dbi Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/how-to-migrate-from-on-premise-to-an-azure-sql-database\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/how-to-migrate-from-on-premise-to-an-azure-sql-database\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB3-14.jpg\",\"datePublished\":\"2019-05-03T07:34:17+00:00\",\"author\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/b6bce7d75118b35bdb3b439ad6a9ca3c\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/how-to-migrate-from-on-premise-to-an-azure-sql-database\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/how-to-migrate-from-on-premise-to-an-azure-sql-database\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/how-to-migrate-from-on-premise-to-an-azure-sql-database\/#primaryimage\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB3-14.jpg\",\"contentUrl\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB3-14.jpg\",\"width\":1817,\"height\":951},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/how-to-migrate-from-on-premise-to-an-azure-sql-database\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/www.dbi-services.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to migrate from on-premise to an Azure SQL Database\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/\",\"name\":\"dbi Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/b6bce7d75118b35bdb3b439ad6a9ca3c\",\"name\":\"St\u00e9phane Savorgnano\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/88d2a790f775c52c1012ec644d883431da758f2cbcfc16067ade04d2ef625ef5?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/88d2a790f775c52c1012ec644d883431da758f2cbcfc16067ade04d2ef625ef5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/88d2a790f775c52c1012ec644d883431da758f2cbcfc16067ade04d2ef625ef5?s=96&d=mm&r=g\",\"caption\":\"St\u00e9phane Savorgnano\"},\"description\":\"St\u00e9phane Savorgnano has more than fifteen years of experience in Microsoft software development and in SQL Server database solutions. He is specialized in SQL Server installation, performance analysis, best practices, etc. St\u00e9phane Savorgnano is Microsoft Certified Solutions Associate (MCSA) and\u00a0Microsoft Certified Solutions Expert (MCSE) for SQL Server 2012. He is also Microsoft Certified Technology Specialist (MCTS) and Microsoft Certified IT Professional (MCITP) for SQL Server 2008 as well as ITIL Foundation V3 certified. Prior to joining dbi services, he was software engineer at Ciba Specialty Chemicals in Basel. St\u00e9phane Savorgnano holds a Master of Informatics from Mulhouse University (F). His branch-related experience covers Banking \/ Financial Services, Chemicals &amp; Pharmaceuticals, etc.\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/author\/stephane-savorgnano\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to migrate from on-premise to an Azure SQL Database - dbi Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbi-services.com\/blog\/how-to-migrate-from-on-premise-to-an-azure-sql-database\/","og_locale":"en_US","og_type":"article","og_title":"How to migrate from on-premise to an Azure SQL Database","og_description":"As a SQL Server DBA we have the habit to migrate databases from an instance to another one or to a new environment. But migrate a database from on-premise to the Azure Cloud is an operation that we don\u2019t deal with every day. As a reminder, Azure SQL Database is a relational database-as-a-service (DBaaS) which [&hellip;]","og_url":"https:\/\/www.dbi-services.com\/blog\/how-to-migrate-from-on-premise-to-an-azure-sql-database\/","og_site_name":"dbi Blog","article_published_time":"2019-05-03T07:34:17+00:00","og_image":[{"width":1817,"height":951,"url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB3-14.jpg","type":"image\/jpeg"}],"author":"St\u00e9phane Savorgnano","twitter_card":"summary_large_image","twitter_misc":{"Written by":"St\u00e9phane Savorgnano","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/how-to-migrate-from-on-premise-to-an-azure-sql-database\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/how-to-migrate-from-on-premise-to-an-azure-sql-database\/"},"author":{"name":"St\u00e9phane Savorgnano","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/b6bce7d75118b35bdb3b439ad6a9ca3c"},"headline":"How to migrate from on-premise to an Azure SQL Database","datePublished":"2019-05-03T07:34:17+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/how-to-migrate-from-on-premise-to-an-azure-sql-database\/"},"wordCount":840,"commentCount":0,"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/how-to-migrate-from-on-premise-to-an-azure-sql-database\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB3-14.jpg","keywords":["Azure","Azure Migration","Azure SQL Database","Data Migration Assistant","Migration"],"articleSection":["Cloud","Database management"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/how-to-migrate-from-on-premise-to-an-azure-sql-database\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/how-to-migrate-from-on-premise-to-an-azure-sql-database\/","url":"https:\/\/www.dbi-services.com\/blog\/how-to-migrate-from-on-premise-to-an-azure-sql-database\/","name":"How to migrate from on-premise to an Azure SQL Database - dbi Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/how-to-migrate-from-on-premise-to-an-azure-sql-database\/#primaryimage"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/how-to-migrate-from-on-premise-to-an-azure-sql-database\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB3-14.jpg","datePublished":"2019-05-03T07:34:17+00:00","author":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/b6bce7d75118b35bdb3b439ad6a9ca3c"},"breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/how-to-migrate-from-on-premise-to-an-azure-sql-database\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/how-to-migrate-from-on-premise-to-an-azure-sql-database\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/how-to-migrate-from-on-premise-to-an-azure-sql-database\/#primaryimage","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB3-14.jpg","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/Azure_ImportDB3-14.jpg","width":1817,"height":951},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/how-to-migrate-from-on-premise-to-an-azure-sql-database\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to migrate from on-premise to an Azure SQL Database"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/b6bce7d75118b35bdb3b439ad6a9ca3c","name":"St\u00e9phane Savorgnano","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/88d2a790f775c52c1012ec644d883431da758f2cbcfc16067ade04d2ef625ef5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/88d2a790f775c52c1012ec644d883431da758f2cbcfc16067ade04d2ef625ef5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/88d2a790f775c52c1012ec644d883431da758f2cbcfc16067ade04d2ef625ef5?s=96&d=mm&r=g","caption":"St\u00e9phane Savorgnano"},"description":"St\u00e9phane Savorgnano has more than fifteen years of experience in Microsoft software development and in SQL Server database solutions. He is specialized in SQL Server installation, performance analysis, best practices, etc. St\u00e9phane Savorgnano is Microsoft Certified Solutions Associate (MCSA) and\u00a0Microsoft Certified Solutions Expert (MCSE) for SQL Server 2012. He is also Microsoft Certified Technology Specialist (MCTS) and Microsoft Certified IT Professional (MCITP) for SQL Server 2008 as well as ITIL Foundation V3 certified. Prior to joining dbi services, he was software engineer at Ciba Specialty Chemicals in Basel. St\u00e9phane Savorgnano holds a Master of Informatics from Mulhouse University (F). His branch-related experience covers Banking \/ Financial Services, Chemicals &amp; Pharmaceuticals, etc.","url":"https:\/\/www.dbi-services.com\/blog\/author\/stephane-savorgnano\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/12413","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=12413"}],"version-history":[{"count":0,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/12413\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media\/12448"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=12413"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=12413"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=12413"},{"taxonomy":"type","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/type_dbi?post=12413"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}