Project Description

SQL Database Migration Wizard (SQLAzureMW) is designed to help you migrate your SQL Server 2005/2008/2012/2014 databases to Azure SQL Database.

Project Details

The SQL Azure Migration Wizard (SQLAzureMW) will let you identify a SQL Server 2005 / 2008 database that you want to migrate to SQL Azure or select an existing SQL file that has the commands you want to execute against SQL Azure. It also gives you to the option to migrate your data (via BCP) to SQL Azure.

1) If your source is a SQL Server database, SQLAzureMW will walk you through the different object types (i.e. Tables, Stored Procedures, Views, etc.) and let you decide which ones you want analyzed / scripted. You will be given two options:
  • Script to window / SQL Azure - Choose this option to display the SQL script to a wizard window where you can modify it before telling the wizard to script to Azure.
  • Script to file - Choose this option if you want to save your SQL script to a file. You can edit this file in SQL Server Management Studio and run it from there or save it and use the wizard to load and run your file.
This wizard has over 1000 incompatibility search strings (rules). It analysis your database against these rules and gives you a summary report. The analysis summary will display incompatibility issues in red identifying issues that need to be addressed before migrating to SQL Azure. Once all incompatibility issues have been resolved, you can use SQLAzureMW to migrate your database schema and the data to SQL Azure.

2) If your source is a file containing TSQL, then you will be given the option to have SQLAzureMW check the TSQL for incompatibilities and fix where possible. Once you have the file created by SSMS, you can have SQLAzureMW process the file and then execute the results against your SQL Azure database.


There is a config file “NotSupportedByAzureFile.Config” that is used to define what to look for / replace within the SQL generated code. This file uses RegEx expressions and if you see a pattern that you want removed from the SQL Script, you can put the pattern in the config file and specify what you want to replace it with (if anything).

When the SQL script is generated, an analysis window will be displayed telling you what areas need to be fixed prior to running the script against SQL Azure. Once you are satisfied, you can tell the wizard to run your script against SQL Azure and your script will be ran against your cloud database and the success / failed results will be displayed in a wizard window.

Future Enhancements

This tool is in beta state and there will be lot of changes based on feedback. Be sure to check back for updates often!


SQL Azure Migration Wizard does not catch all of the compatibility issues between different levels of SQL Server databases (i.e. level 80, 90, and 100). SQL Azure is based on SQL Server 2008 (level 100). If you are migrating from an older database (level 80 or 90), you should go through the upgrade process first (at least in the dev environment) and once on SQL Server 2008, then migrate to SQL Azure. Here are some great resources to help you with migrating from older versions of SQL Server:
  1. Ultimate guide for upgrading to SQL Server 2008: (
  2. Microsoft SQL Server 2008 Upgrade Advisor: (
  3. SQL Server 2008 Upgrade Assistant: (
Further Reading

Ultimate guide for upgrading to SQL Server 2008:

For information on SQL Azure and the Windows Azure Platform, please see the following resources:
We welcome your feedback! Please let us know if you like this tool or how we can improve it!

Last edited Nov 4, 2009 at 1:27 PM by ghuey, version 20