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.
Requirements
SQLAzureMW v3x and tools requires SQL Server 2008 R2 SP1 bits to run.
SQLAzureMW v4x and tools requires SQL Server 2012 bits to run.

Windows Azure SQL Database
Microsoft® Windows Azure SQL Database ™ is a cloud-based relational database service built on SQL Server® technologies. It provides a highly available, scalable, multi-tenant database service hosted by Microsoft in the cloud. To sign up for Windows Azure SQL Database , go to Windows Azure 90-day free trial.

Announcing Reduced Pricing on Azure SQL Database

Azure SQL Database Federation
SQL Database Federations allows DBAs to scale out their database by federating (sharding) their database. SQL Database Federation makes it easier to set up the federated databases, and automate the process of adding new federation members.

For more information on SQL Database Federations see:
For a limited time, new customers can sign up for Azure SQL Database and get a 1GB Web Edition Database for no charge…and no commitment. This is a great way to try Azure SQL Database – and the Windows Azure platform – without the risk. For more information go to Windows Azure Platform Introductory Special

Windows Azure
Microsoft is offering a Windows Azure 3 month free trial, so you can try Windows Azure and SQL Azure for free.
For more information go to Try Windows Azure 3 Month free trial.

SQLAzureMW Supported Languages
  • SQLAzureMW が、国際対応できたことを発表できて光栄に思う。最初の翻訳言語は、日本語です!
  • SQLAzureMW unterstützt nun die deutsche Sprache.
  • SQLAzureMW ondersteunt nu de taal Nederlands.
  • SQLAzureMW ahora soporta el idioma español.
  • SQLAzureMW supporte maintenant la langue française
  • SQLAzureMW 现在支持中文了。
  • SQLAzureMW 現在已可支援繁體中文了。
Project Description Continued
SQL Database Migration Wizard (SQLAzureMW) is an open source application that has been used by thousands of people to migrate their SQL database to and from Windows Azure SQL Database. SQLAzureMW is a user interactive wizard that walks a person through the analysis / migration process. One of the main requests from the SQLAzureMW community was to take the user interactive wizard and make it command line driven interface so that it could be used in an automated backup process to back up their Windows Azure SQL Database schema / data to a data store for disaster recovery. I am excited to let you know that SQLAzureMW now has two tools that can be used from a command line:
  • SQLAzureMWBatchBackup:
    • This is used to create a backup of a database schema and data. The data is downloaded via BCP. The TSQL output from SQLAzureMWBatchBackup can be used by SQLAzureMW or SQLAzureMWBatchUpload.
  • SQLAzureMWBatchUpload:
    • Takes the output from SQLAzureMW or SQLAzureMWBatchBackup and runs it against the target Azure SQL Database (or SQL Server) server.
Complete documentation for SQLAzureMW, SQLAzureMWBatchBackup and SQLAzureMWBatchUpload can be found on the download site.

The SQLAzureMW tools greatly simplify schema analysis and migration process. If you don’t have an Windows Azure account and have been thinking about moving your data to the cloud (Windows Azure SQL Database), but have been afraid to try because of “unknowns” like cost, compatibility, and effort? SQL Database Migration Wizard (SQLAzureMW) is a free set of open source applications that have been developed by the database community to help you address these issues. SQLAzureMW will help you analyze your SQL Server database for compatibility issues and will migrate your schema and data to Windows Azure SQL Database.

SQLAzureMW Project Details
The SQL Database Migration Wizard (SQLAzureMW) gives you the options to analyzes, generates scripts, and migrate data (via BCP) from:
  1. SQL Server to Windows Azure SQL Database
  2. Windows Azure SQL Database to SQL Server
  3. Windows Azure SQL Database to Windows Azure SQL Database
It will also analyze SQL Profiler trace files and TSQL script for compatibility issues with Windows Azure SQL Database.
  1. If your source is a SQL Server database, SQLAzureMW will list all of the object types (i.e. Tables, Stored Procedures, Views, etc.) and let you decide which ones you want analyzed / scripted. Using the “Advanced” options you can tell SQLAzureMW which compatibility checks to perform and if the data should be migrated.
  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 or just run the script without any compatibility checking.
  3. You can specify a SQL Profiler trace file for analysis.
SQLAzureMWBatchBackup Project Details
The SQLAzureMWBatchBackup is a command line application that will analyze, create TSQL script of database and backup data (via BCP) from a SQL Server or SQL Azure database. The output of SQLAzureMWBatchBackup can be used in SQLAzureMWBatchUpload.

SQLAzureMWBatchUpload Project Details
The SQLAzureMWBatchUpload is a command line application that will run a TSQL script file (and use BCP to upload data) against a target server. SQLAzureMW and SQLAzureMWBatchBackup can be used to generate the TSQL script and the BCP files that can then be used by SQLAzureMWBatchUpload for uploading to a target server. The target server can be Windows Azure SQL Database or SQL Server.

Configurable
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 Windows Azure SQL Database. Once you are satisfied, you can tell the wizard to run your script against Windows Azure SQL Database and your script will be ran against your cloud database and the success / failed results will be displayed in a wizard window.

SQL Database Migration Wizard Utils (SQLAzureMWUtils)
SQLAzureMWUtils is a class library that a developer can use to assist them in developing for Windows Azure SQL Database. To find out more, read the SQLAzureMWBatch documentation.

Note

SQL Database 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 Database is based on SQL Server 2012 (level 110). If you are migrating from an older database (level 80, 90 or 100), you should go through the upgrade process first (at least in the dev environment) and once on SQL Server 2012, then migrate to Windows Azure SQL Database. Here are some great resources to help you with migrating from older versions of SQL Server:
  1. Upgrading to SQL Server 2008 R2
  2. Microsoft SQL Server 2008 Upgrade Advisor
Further Reading

Microsoft SQL Server Migration Assistant (SSMA): The free Microsoft SQL Server Migration Assistant (SSMA) makes it easy to migrate data from Oracle, Microsoft Access, MySQL, and Sybase to SQL Server. SSMA converts the database objects to SQL Server database objects, loads those objects into SQL Server, migrates data to SQL Server, and then validates the migration of code and data.

For information on Azure SQL Database 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 Oct 23, 2012 at 4:21 PM by ghuey, version 80