18
Migrating Data to SQL Azure Arunraj Chandrasekaran http://www.SQLXpertise.com Twitter - @SQLXpertise June 21, 2011

Migrating Data to SQL Azure

  • Upload
    gamba

  • View
    53

  • Download
    0

Embed Size (px)

DESCRIPTION

Migrating Data to SQL Azure. Arunraj Chandrasekaran http://www.SQLXpertise.com Twitter - @ SQLXpertise. June 21, 2011. Agenda. Introduction What data can be moved to SQL Azure ? Preparation for Migration Migration Tools SQL Server / Azure Migration Assistants Access MySQL - PowerPoint PPT Presentation

Citation preview

Page 1: Migrating Data to SQL Azure

Migrating Data to SQL Azure

Arunraj Chandrasekaranhttp://www.SQLXpertise.com

Twitter - @SQLXpertise

June 21, 2011

Page 2: Migrating Data to SQL Azure

Introduction What data can be moved to SQL Azure ? Preparation for Migration Migration Tools

SQL Server / Azure Migration Assistants Access MySQL

SQL Azure Migration Wizard DAC Database Import / Export SQL Azure Sync Service SQL Azure Database Copy SSMS Generate Scripts, BCP, SSIS

Agenda

Page 3: Migrating Data to SQL Azure

SQL Azure Database Highly available, and scalable cloud database

service built on SQL Server technologies SQL Azure Data Sync Service

Cloud-based data synchronization service built on Microsoft Sync Framework technologies. It provides bi-directional data synchronization and data management capabilities allowing data to be easily shared between multiple SQL Azure databases and between on-premises and SQL Azure databases

Introduction

Page 4: Migrating Data to SQL Azure

What data can be moved to SQL Azure ?

SQL Server

SQL Azure

SQL Server

SQL Azure

Page 5: Migrating Data to SQL Azure

Clustered Index required for All Tables Connection Handling Database Size and Scaling Features not supported

Encryption SQL CLR Cross Database Queries SQL Server Agent Database Mail Full Text Service Broker

Preparation for Migration

Page 6: Migrating Data to SQL Azure

Tool Schema

Data Comments

SQL Server Migration Assistant

Yes Yes Supported by Microsoft, Free

SQL Azure Migration Wizard Yes Yes Not supported, Free, Open Source

DAC v 1.0 (SQL Server 2008 R2)

Yes No Full SQL Azure support

DAC v 2.0 (SQL Server “Denali”)

Yes Yes Good, Still in Beta will be released along with Denali

SQL Azure Data Sync Service

Yes Yes Bi Directional, Support for migrating changes, multiple members

SQL Azure Database Copy Yes Yes Only within SQL AzureSSMS Generate Scripts option

Yes No

BCP No YesSSIS / Import Export Wizard No Yes

Migration Tools

Page 7: Migrating Data to SQL Azure

Free Tool available with Support from Microsoft Supports Migration to SQL Server and Azure

Access (http://www.microsoft.com/downloads/en/details.aspx?FamilyID=4b37df74-7522-41cf-9c1a-

01b6415d9608) MySQL (http://www.microsoft.com/downloads/en/details.aspx?FamilyID=ac017a90-3b53-49b6-92a7-

0f91623ef530) Sybase (http://go.microsoft.com/?linkid=9771006) Oracle (Currently Supports SQL Server, SQL Azure support

will be released in future) (http://www.microsoft.com/download/en/details.aspx?id=23945) Migrates Schema and Data

SQL Server Migration Assistant

DEMO

Page 8: Migrating Data to SQL Azure

Free Available on http://sqlazuremw.codeplex.com/

Support SQL Server 2005 / 2008 / 2008 R2 migration

Supports Schema Analysis and fixing of basic issues

SQL Azure Migration Wizard

DEMO

Page 9: Migrating Data to SQL Azure

DAC Framework V 2.0 available in www.SQLAzureLabs.com as CLI

Support for Schema and Data Support Export data from SQL Azure and

Import to SQL Server and vice versa For more information about API, Please read

http://msdn.microsoft.com/en-us/library/ff381683(SQL.100).aspx

DAC Import / Export v 2.0

Page 10: Migrating Data to SQL Azure

Export Schema and DataDacImportExportCli.exe -s serverName.database.windows.net -d databaseName -f C:\filePath\exportFileName.bacpac -x -u userName -p password

Import Schema and DataDacImportExportCli.exe -s serverName.database.windows.net -d databaseName -f C:\filePath\exportFileName.bacpac -i –edition business –size 30 -u userName -p password

Drop Database and DACPACDacImportExportCli.exe -s serverName.database.windows.net -drop databaseName -u userName -p password

DAC Import / Export v 2.0

DEMO

Page 11: Migrating Data to SQL Azure

Built on Sync Framework No Code Easy to configure Support Bi-Directional and Unidirectional

Sync Conflict Handling Logging and Monitoring Change Tracking

SQL Azure Data Sync Service

DEMO

Page 12: Migrating Data to SQL Azure

Supports Sync of selected Tables Batch Transfers Snapshot Isolation enabled for SQL Server

databases Currently in CTP2 (http://connect.microsoft.com/sqlazurectps) No Support for Views Future Support

Row Filter Option to define Conflict resolution policy

SQL Azure Data Sync Service

DEMO

Page 13: Migrating Data to SQL Azure

Supports creating databases within SQL Azure server transiently

Supports across SQL Azure servers as well Usage

CREATE DATABASE destination_database_name AS COPY OF [source_server_name.] source_database_name

SQL Azure Database Copy

DEMO

Page 14: Migrating Data to SQL Azure

Supports only Schema

SSMS Generate Scripts

DEMO

Page 15: Migrating Data to SQL Azure

Supports exporting or import Text Files or CSV files

No support for Schema

BCP

DEMO

Page 16: Migrating Data to SQL Azure

Support Data migration No support for Schema

SSIS / SQL Server Import Export Wizard

DEMO

Page 17: Migrating Data to SQL Azure

Free SQL Azure 30 Day Pass

Page 18: Migrating Data to SQL Azure

SQL Azure MSDN - http://msdn.microsoft.com/en-us/windowsazure/sqlazure/cc500985

SQL Azure Forums - http://social.msdn.microsoft.com/forums/en-US/ssdsgetstarted/threads

SQL Azure Team Blog - http://blogs.msdn.com/b/sqlazure/ Free Training Videos / Demos - http://sqlazure.codeplex.com

/ SQL Azure Labs - https://www.sqlazurelabs.com/ My Blog – http://www.SQLXpertise.com

References