Introduction:
In this article we are going to see the second option for migrating an on-premises SQL Server 2005 database to SQL Azure using the SQL Server Migration Wizard. This tool is an open-source free tool from Codeplex.com and we will see the documentation and the usage of this tool from the link. Since this is from the community Microsoft is not providing any support for this tool.
Overview:
In our earlier article we have seen the first option for migrating the database from a local SQL Server 2005 On-Premises database to the cloud using the traditional approach. But in this article we are going to see the second option of doing the migration using the open source tool available from Codeplex.com. Now let's see the steps to do this migration process.
Steps:
First we need to download this tool from SQL Server Migration Wizard. Go to this link and we will see the Download option on the right side menu as shown in the screen below:
We will get the download ready (Includes the Binary files); save it in a particular location and extract the files. We will see the list of files available as shown in the screen below:
Now double-click the file and we will see a window opened as shown in the screen below. This window is the start-up screen for this tool.
The Tool can use to migrate the data between the following:
- SQL Server to SQL Azure
- SQL Azure to SQL Server
- SQL Azure to SQL Azure
So our next step is to analyze our database to detrertmine if it can be migrated to the cloud. Follow the following steps to that. Select SQL Database from the Analyze only option as shown in the screen below:
Clicking on Next will Popup a window as shown in the screen below:
Now we select our Server Name and the credentials to connect to the database and click on Connect. Now we will see the list of databases ready to migrate as shown in the screen below.
Now select the School database and click the Next button as shown in the screen below. We will see options of database and stored procedures listed as shown below (Since this database has only Tables and Stored procedures it is compatible).
Now click on the Next button; we will see the Summary list as shown in the screen below. Before that we will see an option Advanced; clicking on that will open a window for user selection as shown in the screen below:
Select the respective option from the list as per our requirement and click on OK button. Now we will see the summary as shown in the screen below:
Click on the Next button. A tool will be ready for preparing the script and you will see the progress as shown in the screen below:
After completing 100% we will see the result windows as shown in the screen below:
We have an option for saving the Scripts and also we have an option to see the SQL Scripts by clicking on the SQL Script tab as shown in the screen below:
We can use this script to run it to the server destination as we do with the Option 1 which we saw in our earlier article on migration. Now we have an option to do that using this tool itself. Let's see the steps to do that using this tool. Click on Exit and open the new tool and follow the following step by step process.
Now select the Analyze and Migrate option and click on the Next button as shown in the screen below:

Gowtham RajamanickamPosted Apr 20, 2015, 3:26 PM
good one...