01 dev room2_kung_fu_migration_scottklein_23kung fu migration to windows azure sql database

22
Kung-Fu Migration to Windows Azure SQL Database

Upload: microsoft-developer-network-msdn-belgium-and-luxembourg

Post on 29-Nov-2014

572 views

Category:

Documents


0 download

DESCRIPTION

More info on http://www.techdays.be

TRANSCRIPT

Page 1: 01 dev room2_kung_fu_migration_scottklein_23Kung Fu Migration to Windows Azure SQL Database

Kung-Fu Migration to Windows Azure SQL Database

Page 2: 01 dev room2_kung_fu_migration_scottklein_23Kung Fu Migration to Windows Azure SQL Database

Kung-Fu Migration to Windows Azure SQL Database

Scott KleinTechnical Evangelist@SQLScott

Page 3: 01 dev room2_kung_fu_migration_scottklein_23Kung Fu Migration to Windows Azure SQL Database

Agenda

DACFx & Import / Export ServiceSQL Server Data ToolsOther Migration ToolsBest Practices

Page 4: 01 dev room2_kung_fu_migration_scottklein_23Kung Fu Migration to Windows Azure SQL Database

DACFx & Import / Export Service

Page 5: 01 dev room2_kung_fu_migration_scottklein_23Kung Fu Migration to Windows Azure SQL Database

Terminology

Some DefinitionsDAC – Data-tier ApplicationDACFx – DAC FrameworkDACPAC –Schema only artifactBACPAC – Deployment artifact containing schema and data

Page 6: 01 dev room2_kung_fu_migration_scottklein_23Kung Fu Migration to Windows Azure SQL Database

DAC Fx (DAC Framework)

Client DAC ComponentsDACFX client library installed automatically by SQL ServerNo need for additional client libraries or MSIsWizards provided in SSMS to create and distribute DACPAC/BACPACSimplify packaging and deployment of databases

Page 7: 01 dev room2_kung_fu_migration_scottklein_23Kung Fu Migration to Windows Azure SQL Database

Import/Export Service

Simplified MigrationImport/Export between Windows Azure SQL Database and Blob StorageExport and Import a logical backup file (BACPAC) containing schema definition and dataCopy databases between SQL Database serversMigrate from SQL Server on-premises to SQL Database

Page 8: 01 dev room2_kung_fu_migration_scottklein_23Kung Fu Migration to Windows Azure SQL Database

On-Premises

SQL Database

Blob Storage

DACFxImport/Export

Service

SQL Database Service Import / Export

BACPACUpload/

Download

Architecture

Windows AzureBlob StorageSQL DatabaseDACFx Import/Export Service

Client-side Import/Export

BACPAC

Copy

Import / Export Request (REST)On-Premises

SQL Server 2005, 2008/R2, 2012DACFxClient-side Tools (SSMS and SSDT)

Page 9: 01 dev room2_kung_fu_migration_scottklein_23Kung Fu Migration to Windows Azure SQL Database

Service Benefits

Included with the ServiceAutomated Service EndpointIntegrated Portal ExperiencePerformance via data center side deploymentConnection ResiliencySelective ExportProgressive Status Reporting

Page 10: 01 dev room2_kung_fu_migration_scottklein_23Kung Fu Migration to Windows Azure SQL Database

Requirements

On-PremisesSQL Server 2012All necessary components are installed

SQL Server* 2008 R2, 2008, 2005Data-tier Application FrameworkScriptDOMSystem CLR Types

Windows AzureStorage AccountSQL Database Server

Note:The dependencies are not needed if you plan on only using the service

Page 11: 01 dev room2_kung_fu_migration_scottklein_23Kung Fu Migration to Windows Azure SQL Database

Limitations

Not SupportedSQL Variant Data TypeNo transactional consistencyDatabase must be SQL Database compatibleSecrets not migrated (passwords, encrypted procs, etc.)No support for SQL Server 2000

Page 12: 01 dev room2_kung_fu_migration_scottklein_23Kung Fu Migration to Windows Azure SQL Database

Demos

Page 13: 01 dev room2_kung_fu_migration_scottklein_23Kung Fu Migration to Windows Azure SQL Database

SQL Server Data Tools

Page 14: 01 dev room2_kung_fu_migration_scottklein_23Kung Fu Migration to Windows Azure SQL Database

SQL Server Data Tools

FoundationDeclarative, model based database developmentIntegrated ToolsApplication development integrationSQL Server and SQL Database SupportConnected and offline with local testingChange Detection

Page 15: 01 dev room2_kung_fu_migration_scottklein_23Kung Fu Migration to Windows Azure SQL Database

SQL Server Data Tools

Key BenefitsConnected DevelopmentProject Based DevelopmentSchema Deployment

Page 16: 01 dev room2_kung_fu_migration_scottklein_23Kung Fu Migration to Windows Azure SQL Database

Demo

Page 17: 01 dev room2_kung_fu_migration_scottklein_23Kung Fu Migration to Windows Azure SQL Database

Other Migration Tools

Page 18: 01 dev room2_kung_fu_migration_scottklein_23Kung Fu Migration to Windows Azure SQL Database

Additional Tools

Microsoft and 3rd PartyGenerate Scripts WizardBCPSSISSQL Database Migration WizardMigration Assistants

Page 19: 01 dev room2_kung_fu_migration_scottklein_23Kung Fu Migration to Windows Azure SQL Database

Considerations and Best Practices

Page 20: 01 dev room2_kung_fu_migration_scottklein_23Kung Fu Migration to Windows Azure SQL Database

Migration considerations

Things to Keep in MindData SizeData TypesFrequencyTransactional ConsistencyTechnology Proficiency

Page 21: 01 dev room2_kung_fu_migration_scottklein_23Kung Fu Migration to Windows Azure SQL Database

Consider the Options

Tools Schema

SQL Database Compat Checks

DataData

Transfer Efficiency

Notes

BCP No N/A Yes Good • Efficient transfer of data to existing table

SSMS Generate Scripts wizard

Yes Some Yes Poor• Good for smaller databases• Has explicit option for SQL Database script generation

SQL Server Import & Export Data

No N/A Yes Good• Simple UI on top of SSIS; also available in SSMS

SSIS No N/A Yes Good• Most flexibility

SQL Database Migration Wizard

Yes Yes Yes Good• Great capabilities; e.g. evaluate trace files• Open source on CodePlex;• Not supported by MSFT

DAC (BACPAC) Yes Yes Yes Good• Entity containing all database objects including data• Full SQL Database support

DAC Database Import/Export

Yes Yes Yes Good• Export/import of DAC plus data with DAC framework• Service for cloud-only support coming soon

SQL Database Copy Yes N/A Yes Good• Create transactionally consistent copy of SQL Database

instances• Currently within the same data center

Page 22: 01 dev room2_kung_fu_migration_scottklein_23Kung Fu Migration to Windows Azure SQL Database

Thank You!