Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Migrate SQL Server database to SQL Azure

What's the best way to move a normal SQL server database to SQL Azure? Is it right that you can't restore from a backup file? The only way I've found so far is to script the database (and its data) and run those scripts on the SQL Azure database but this is slow when you have lots of data.

like image 439
Carl Rippon Avatar asked Dec 21 '09 14:12

Carl Rippon


People also ask

Can we migrate on-premises SQL database to Azure?

This Azure service can migrate SQL Server databases to Azure SQL Database through the Azure portal or automatically through PowerShell. Database Migration Service requires you to select a preferred Azure virtual network during provisioning to ensure connectivity to your source SQL Server databases.

How do I migrate SQL Server to Azure SQL managed instance?

Open the Data Migration Assistant (DMA). Select File and then choose New assessment. Specify a project name, select SQL Server as the source server type, and then select Azure SQL Managed Instance as the target server type. Select the type(s) of assessment reports that you want to generate.

Is Azure SQL Database compatible with SQL Server?

Azure fully supports running any edition of SQL Server on IaaS (VM). Combined with 'Always On' availability groups you will be able to achieve full compatibility with legacy on-premises SQL installs.


3 Answers

Use the SQL Azure Migration Wizard if running SQL 2008: http://sqlazuremw.codeplex.com/

For older versions the best thing I've seen is to either first upgrade to 2008 then port, or (unfortunately) to port the data using scripts as you've suggested. If you have to do so, might I suggest SubSonic for generating your scripts?

like image 105
Grinn Avatar answered Sep 22 '22 01:09

Grinn


  1. Patch SQL Management Studio 2014 with the latest patches
  2. Connect to your onsite sql server
  3. Right click Database > Tasks > Deploy Database to Windows Azure SQL
  4. DONE!

Thank you:

http://blogs.msdn.com/b/brunoterkaly/archive/2013/09/26/migrating-an-on-premises-sql-server-2012-database-to-windows-azure-sql-database.aspx

like image 44
Armand G. Avatar answered Sep 21 '22 01:09

Armand G.


Use the SQL Azure Migration Wizard if running SQL 2008:

  • http://sqlazuremw.codeplex.com/
  • https://code.msdn.microsoft.com/The-best-way-to-migrate-6c4a7326
like image 31
chourouk Avatar answered Sep 20 '22 01:09

chourouk