Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Migrating your existing on-prem SQL Server database to Azure SQL DB

#1
Migrating your existing on-prem SQL Server database to Azure SQL DB

<div style="margin: 5px 5% 10px 5%;"><img src="http://www.sickgaming.net/blog/wp-content/uploads/2019/02/migrating-your-existing-on-prem-sql-server-database-to-azure-sql-db.png" width="986" height="606" title="" alt="" /></div><div><p>If you are in the process of moving an existing .NET application to Azure, it’s likely you’ll have to migrate an existing, on-prem SQL database as well. There are a few different ways you can go about this, so let’s go through them.</p>
<h3>Data Migration Assistant (downtime required)</h3>
<p>The Data Migration Assistant (<span><a href="https://www.microsoft.com/download/details.aspx?id=53595">download</a></span> | <span><a href="https://docs.microsoft.com/en-us/sql/dma/dma-overview?view=sql-server-2017">documentation</a></span>) is free, easy to use, slick and extremely powerful! It can:</p>
<ul>
<li>Evaluate if your database is ready to migrate and produce a readiness report (command line support included)</li>
<li>Provide recommendations for how to remediate migration blocking issues</li>
<li>Recommend the minimum Azure SQL Database SKU based on performance counter data of your existing database</li>
<li>Perform the actual migration of schema, data and objects (server roles, logins, etc.)</li>
</ul>
<p><a href="http://www.sickgaming.net/blog/wp-content/uploads/2019/02/migrating-your-existing-on-prem-sql-server-database-to-azure-sql-db.png"><img src="http://www.sickgaming.net/blog/wp-content/uploads/2019/02/migrating-your-existing-on-prem-sql-server-database-to-azure-sql-db.png" alt="" width="986" height="606" class="alignnone size-full wp-image-16265" /></a></p>
<p>After a successful migration, applications will be able to connect to the target SQL server databases seamlessly. There are currently a <span><a href="https://docs.microsoft.com/en-us/azure/dms/known-issues-azure-sql-online">couple of limitations</a></span>, but the majority of databases shouldn’t be impacted. If this sounds interesting, check out the full tutorials on <span><a href="https://docs.microsoft.com/en-us/azure/dms/tutorial-sql-server-to-azure-sql">how to migrate to Azure SQL DB</a></span> and how to migrate to <span><a href="https://docs.microsoft.com/en-us/azure/dms/tutorial-sql-server-to-managed-instance">Azure SQL DB Managed Instance</a></span>.</p>
<h3></h3>
<h3>Azure Data Migration Service (no downtime required)</h3>
<p>The <span><a href="https://azure.microsoft.com/en-us/services/database-migration/">Azure Data Migration Service</a></span> allows you to move your on-prem database to Azure without taking it offline during the migration. Applications can keep on running while the migration is taking place. Once the database in Azure is ready you can switch your applications over immediately.</p>
<p><a href="http://www.sickgaming.net/blog/wp-content/uploads/2019/02/migrating-your-existing-on-prem-sql-server-database-to-azure-sql-db-1.png"><img src="http://www.sickgaming.net/blog/wp-content/uploads/2019/02/migrating-your-existing-on-prem-sql-server-database-to-azure-sql-db-1.png" alt="" width="826" height="308" class="alignnone size-full wp-image-16275" /></a></p>
<p>If this sounds interesting, check out the full tutorials on <span><a href="https://docs.microsoft.com/en-us/azure/dms/tutorial-sql-server-azure-sql-online">how to migrate to Azure SQL DB</a></span> and how to migrate to <span><a href="https://docs.microsoft.com/en-us/azure/dms/tutorial-sql-server-managed-instance-online">Azure SQL DB Managed Instance</a></span> without downtime.</p>
<h3></h3>
<h3>SQL Server Management Studio (downtime required)</h3>
<p>You are probably already familiar with SQL Server Management Studio (<span><a href="https://go.microsoft.com/fwlink/?linkid=2043154">download</a></span> | <span><a href="https://docs.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms?view=sql-server-2017">documentation</a></span>), but if you are not it’s basically an IDE for SQL Server built on top of the Visual Studio shell and it’s free! Unlike the Data Migration Assistant, it cannot produce readiness reports nor can it suggest remediating actions, but it can perform the actual migration two different ways.</p>
<p>The first way is by selecting the command “Deploy Database to Microsoft Azure SQL Database…” which will bring up the migration wizard to take you through the process step by step:</p>
<p><a href="http://www.sickgaming.net/blog/wp-content/uploads/2019/02/migrating-your-existing-on-prem-sql-server-database-to-azure-sql-db-2.png"><img src="http://www.sickgaming.net/blog/wp-content/uploads/2019/02/migrating-your-existing-on-prem-sql-server-database-to-azure-sql-db-2.png" alt="" width="756" height="830" class="alignnone size-full wp-image-16245" /></a></p>
<p>The second way is by exporting the existing, on-prem database as a .bacpac file (<span><a href="https://docs.microsoft.com/en-us/sql/relational-databases/data-tier-applications/export-a-data-tier-application?view=sql-server-2017#UsingDeployDACWizard">docs to help with that</a></span>) and then importing the .backpac file into Azure:</p>
<h3><a href="http://www.sickgaming.net/blog/wp-content/uploads/2019/02/migrating-your-existing-on-prem-sql-server-database-to-azure-sql-db-3.png"><img src="http://www.sickgaming.net/blog/wp-content/uploads/2019/02/migrating-your-existing-on-prem-sql-server-database-to-azure-sql-db-3.png" alt="" width="764" height="837" class="alignnone size-full wp-image-16255" /></a></h3>
<h3>Resolving database migration compatibility issues</h3>
<p>There are a wide variety of compatibility issues that you might encounter, depending both on the version of SQL Server in the source database and the complexity of the database you are migrating. Use the following resources, in addition to a targeted Internet search using your search engine of choices:</p>
<p>In addition to searching the Internet and using these resources, use the <span><a href="https://social.msdn.microsoft.com/Forums/sqlserver/home?category=sqlserver">MSDN SQL Server community forums</a></span> or <a href="http://stackoverflow.com/">StackOverflow</a>. If you have any questions or problems just leave us a comment below.</p>
<p> </p>
</div>
Reply



Forum Jump:


Users browsing this thread:
2 Guest(s)

Forum software by © MyBB Theme © iAndrew 2016