This article show you how to connect to SQL Azure using SQL Server Import and Export Wizard. Once you understand how to connect to SQL Azure, you can migrate data between SQL Azure and other data sources/destinations.
For more information on using the wizard, see Importing and Exporting Data by Using the SQL Server Import and Export Wizard .
SQL Server Import and Export Wizard is capable of copying schema and data, but not other database objects like indexes, constraints and stored procedures. Becasue SQL Azure only support tables with a clustered index, migrating both schema and data at the same time will fail. The wizard is better used for migrating data only. For migrating schema and other SQL Azure data migration options, see Overview of Options for Migrating Data and Schema to SQL Azure.
When you migrating data from SQL Server to SQL Azure, it is also important to note that SQL Azure does not support all SQL Server data types and features. This can complicate the data migration process. For more inforamtion, see Guidelines and Limitations (SQL Azure Database) and Comparing SQL Server with SQL Azure.
You must complete the following steps:
The following procedures show you a custom solution for migrating both schema and data from SQL Server to SQL Azure. As stated in the begining of the article, the wizard is better used for migrating data only. The main goal of these procedures is to show you how to connect to SQL Azure from the wizard.
To migrate schema from SQL Server to SQL Azure
For more information on Encrypt and TrustServerCertifiate, see Security Guidelines and Limitations (SQL Azure Database).
- Copying to [TableName] (Error) Messages Error 0xc020844b: Data Flow Task 1: An exception has occurred during data insertion, the message returned from the provider is: Tables without a clustered index are not supported in this version of SQL Server. Please create a clustered index and try again. (SQL Server Import and Export Wizard)
The error message indicates clustered index is required for SQL Azure tables.
Note: Do not close the Wizard. You will come back to the wizard after you create clustered index for the table.
To create clustered index for the SQL Azure database table
create clustered index idxAddressID on person.address(addressid)
After you execute a statement, click the Messsage button to make sure the command is completed successfully.
To migrate data from SQL Server to SQL Azure
Ed Price - MSFT edited Revision 8. Comment: Removed "In this article" since there's already a TOC.