Launch Your Database Into Azure
Problem & Solutions How do I migrate my on-premises database into Microsoft Azure SQL Database? bacpac deployment for small databases bacpac deployment for large databases dacpac deployment with ETL for incremental loads or minimal downtime @SQLHammer www.sqlhammer.com
Azure SQL Database Limitations Azure SQL Database does not have complete feature parity to on- premises SQL Server. The Database Migration Assistant (DMA) is available to help you remediate conflicts. http://bit.ly/2q5L5cc @SQLHammer www.sqlhammer.com
@SQLHammer www.sqlhammer.com
@SQLHammer www.sqlhammer.com
@SQLHammer www.sqlhammer.com
@SQLHammer www.sqlhammer.com
@SQLHammer www.sqlhammer.com
@SQLHammer www.sqlhammer.com
@SQLHammer www.sqlhammer.com
What is a bacpac? One structured zip file per database, containing a definition of your database’s schema and data. Exported via SQL Server Management Studio or the DAC Framework. Bacpacs methods are the simplest methods. Bacpacs support more versions than transactional replication and are much less of a hassle. Supported for 2005+ databases. @SQLHammer www.sqlhammer.com
Work flow – bacpac wizard @SQLHammer www.sqlhammer.com
Scenarios – bacpac wizard When downtime is acceptable. The bacpac methods require downtime during the migration to guarantee transactional consistency. When the database is small. When a single person can complete the process from start to finish. When there are no performance bottlenecks between the machine with SSMS, the temporary file location, and Azure. @SQLHammer www.sqlhammer.com
@SQLHammer www.sqlhammer.com
@SQLHammer www.sqlhammer.com
@SQLHammer www.sqlhammer.com
@SQLHammer www.sqlhammer.com
@SQLHammer www.sqlhammer.com
@SQLHammer www.sqlhammer.com
@SQLHammer www.sqlhammer.com
Work flow – bacpac CLI @SQLHammer www.sqlhammer.com
Scenarios – bacpac CLI When downtime is acceptable. The bacpac methods require downtime during the migration to guarantee transactional consistency. When the database is small or large. When separation of duties is important. When file placement and where the process executes is important for performance or compliance. When SSMS cannot be installed on processing server. When automation is desired or required. @SQLHammer www.sqlhammer.com
Tools DAC Framework AzCopy.exe AzureRM PowerShell Module Exports / Publishes bacpacs and dacpacs. Released in SQL Server 2008 R2. Versions are side-by-side compatible. Latest version supports all currently supported SQL Server versions. AzCopy.exe Application for copying files where the source and/or destination is an Azure Storage Account. Command line interface only. Most efficient copy method when using Azure Storage Accounts. AzureRM PowerShell Module PowerShell cmdlets for interacting with Azure. @SQLHammer www.sqlhammer.com
@SQLHammer www.sqlhammer.com
@SQLHammer www.sqlhammer.com
@SQLHammer www.sqlhammer.com
@SQLHammer www.sqlhammer.com
@SQLHammer www.sqlhammer.com
@SQLHammer www.sqlhammer.com
@SQLHammer www.sqlhammer.com
What is a dacpac? The same as a bacpac, but without any data. One structured zip file per database, containing a definition of your database’s schema only. Exported via SQL Server Management Studio or the DAC Framework. @SQLHammer www.sqlhammer.com
Work flow – dacpac with ETL @SQLHammer www.sqlhammer.com
Scenarios – dacpac with ETL When downtime is unacceptable. When the database is very large. When incremental data loads are desired. @SQLHammer www.sqlhammer.com
@SQLHammer www.sqlhammer.com
@SQLHammer www.sqlhammer.com
@SQLHammer www.sqlhammer.com
@SQLHammer www.sqlhammer.com
Extract, Transform, & Load Multiple methods available Bcp SSMS Import/Export Wizard Custom SSIS Package Transactional or Snapshot Replication Minimum publisher and distributor version is SQL Server 2012 with latest service pack and cumulative update. Push subscriptions only. @SQLHammer www.sqlhammer.com
Questions? @SQLHammer www.sqlhammer.com