http://www.developer.com/http://www.developer.com/net/how-to-migrate-your-database-to-the-cloud-using-sql-azure.html
As interest grows amongst corporate developers to move their applications to the cloud, there is also a corresponding demand to move the corporate data from on-premise servers to cloud based offerings. SQL Azure is Microsoft's cloud solution for data storage. To move an on-premise database to SQL Azure, one needs to do the following: Since SQL Azure is based upon SQL Server technology, the conversion from on-premise to online is very simple. To get started, visit your Windows Azure management portal. If you have not already signed up for SQL Azure subscription, you can refer to my article "Introduction to SQL Azure" and sign up for a SQL Azure account suitable for your needs. Once you have provisioned a server, you can setup firewall rules to allow access to your SQL Azure server from your IP address. By default, not even Microsoft Services will have access to your SQL Azure server. If you have not already checked off the option to allow other Windows Azure services to access the SQL Azure server, please do so now. Let's assume our database has one table with the following structure: Choose the table you want to create the DDL for and click Next. Under Advanced Scripting options, make sure you select "SQL Azure database" for the "Script for the database engine type". Choose to save the scripts at a specific location and select "Finish" to generate the scripts. Once connected, you can execute the script generated earlier to create the objects in the SQL Azure database. The command you will use is: Now, you have all your data migrated to the cloud. In this article, we saw a walkthrough of migrating our on-premise data to the cloud. I hope you found this information to be useful. Vipul Patel is a Software Engineer currently working at Microsoft Corporation. He is currently working in the Microsoft Lync team and has worked in the .NET team earlier in the Base Class libraries and the Debugging and Profiling team. He can be reached at vipul_d_patel@hotmail.com
How to Migrate your Database to the Cloud Using SQL Azure
August 1, 2011
Introduction To Database Migration
Getting Started

ID (type Int), Identity, Required, Primary Key
Title, nvarchar (50)
Year (int)
bcp Databasename.TableName out backup.dat -n -S ServerName -T
Bcp dbo.TableName in backup.dat -n -S phqkmyv6ym.database.windows.net -Uadminuser@sqlAzure -PsqlAzurePassword -E
Here phqkmyv6ym.database.windows.net is the SQL Azure server name, Adminuser is the Administrator user on the sql Azure server. Summary
About the author