Lead SQL DBA @ BankofAmerica Blog: SQLHarry.com 6/5/2018 Hari Reddy SQLHarry@hotmail.com Lead SQL DBA @ BankofAmerica Blog: SQLHarry.com
Edition & Pricing 6/5/2018 SQL Server SQL Azure Edition Pricing Web Edition Business Edition Server+CAL Core Based DB Size Pricing Cost Enterprise $6,874 0 to 100 MB Flat $4.995 Business Intelligence $8,592* Greater than 100 MB to 1 GB Flat $9.99 Standard $898* $1,793 Greater than 1 GB to 10 GB $9.99 for first GB, $3.996 for each additional GB Developer $50 Per License Greater than 10 GB to 50 GB $45.954 for first 10 GB, $1.996 for each additional GB *CAL (Client Access License) $209 Per CAL Greater than 50 GB to 150 GB $125.874 for first 50 GB, $.999 for each additional GB 5 GB: ($9.99 for the first GB + $3.996 per GB for the next 4 GB) / 31 days = $.84 15 GB: ($45.954 for the first 10 GB + $1.996 per GB for the next 5 GB) / 31 days = $1.81
Database Choices Resources “Friction”/Control Dedicated On-premise SQL Server or other s/w on-premise Resource governance @ machine Security @ DB Server/OS Value Props: Full h/w control – size/scale 100% compatibility Roll-your-own HA/DR/scale Value Props: 100% of API surface area Roll-your-own HA/DR/scale Dedicated Hosted Hosted SQL Server or other Resource governance @ VM Security @ DB Server/OS SQL Azure (RDBMS) Value Props: Auto HA, Fault-Tolerance Friction-free scale Self-provisioning High compatibility Virtual DB server Resource governance @ LDB Security @ LDB Resources Shared Low “Friction”/Control High
Scale Out with SQL Azure Elastic Provisioning of Databases Create DATABASE and go No VMs, No Servers Pay-as-you-go business model Don’t need it – Drop it Zero Physical Administration Built-in High Availability, Patching, maintenance Database Copy, SQL Azure Data Sync
DBA Tasks Limitations SQL Azure No Ability to Control Database Layout. Instance-Level options FileGroups Disk Placement Database-Level options Backup & Restore not supported No Point in time Recovery Create a COPY Work Around for a Backup Track the copies using sys.dm_database_copies
Troubleshooting Troubleshooting SQL Server SQL Azure Dynamic Management Views (DMVs) and System Catalog Views Profiler and Server Side Traces Windows Performance Monitor Built in performance reports in SSMS Query Plans Database Tuning Advisor SQL Azure Limited Subset if Dynamic Management Views (DMVs) Query Plans
Connectivity and Limitations SQL Server SQL Azure SQL Server Management Studio, SQL CMD SQL Server 2008 R2, SQL 2012, SQL CMD Windows Authentication SQL Authentication SQL Authentication only Non Default Port can be used for SQL Server Default port 1433 Limitations SQL Server SQL Azure Not Applicable Connections that have been idle for 30 minutes or longer Long Running Queries over 5 Minutes Excessive resource usage Failover because of server failures
Limitations Feature SQL Server SQL Azure SQL Server SQL Azure Schema/Structure No Such Limitations Table Must have a Clustered index TSQL Supportability All TSQL Support is Available Some TSQL are not Supported * Supported Transact-SQL: http://msdn.microsoft.com/en-us/library/ee336270.aspx * Partially Supported Transact-SQL: http://msdn.microsoft.com/en-us/library/ee336267.aspx * Unsupported Transact-SQL: http://msdn.microsoft.com/en-us/library/ee336253.aspx High Availability feature Replication, Mirroring, LogShipping All are Supported Not surpported as Cloud host inbuilt solutions SQL Agent Job Scheduling Event Notification Fully Supported SQL Server is not available in SQL Azure SQL Server Integration Services (SSIS) Can run SSIS on-premise SSIS Service is not available on Azure platforms Upgrade Manual Upgrade Has its own Upgrade Strategy Backward Compatible SQL Server SQL Azure
SQL Azure Demo 1 SQL Azure CREATE a Server CREATE a Database ADD Firewall Rule Compare SQL Server to SQL Azure
SQL Azure : Database Replicas Single Database Multiple Replicas Replica 1 Single Primary Replica 2 DB Replica 3
SQL Azure : Accessing Databases Web Portal (API) Your App SQL Azure TDS Change Connection String
SQL Azure Data Sync SQL Azure Elastic Scale No-Code Sync Configuration Schedule Sync Conflict Handling Logging and Monitoring Benefits Share Data with remote and retail offices, bringing data closer to end users. Lower latency – data access doesn’t require round trips Higher Availability – App Still runs if Server is unreachable Reduced network utilization – most data access is local
SQL Azure Data Migration Migration Options Generate Script Wizard Produce a SQL Script SQL Server Migration Assistant (Downloadable) MySQL, Oracle, Access, SQL Server.. SQL Azure MW Useful for Catching Unsupported feature in SQL Azure Moves Data Efficiently Unofficially Supported Data-tier Application Component (DAC) New Unit of Deployment for TSQL Apps Support Install, Uninstall Contains developer intent as policies
SQL Azure Demo 2 SQL Azure Create a Database COPY Create a Table to SQL Azure Use SSIS to Migrate the Data to SQL Azure Demo on Data Sync
SQL Server vs SQL Azure Conclusion IT DEPENDS !!!
SQL Server vs SQL Azure References Copying Databases in Windows Azure SQL Database http://msdn.microsoft.com/en-us/library/ff951624.aspx Migrating Databases to Windows Azure SQL Database http://msdn.microsoft.com/en-us/library/ee730904.aspx Compare SQL Server with Windows Azure SQL Database http://social.technet.microsoft.com/wiki/contents/articles/996.compare-sql-server-with-windows-azure-sql-database.aspx