Getting Started with Azure SQL
DatabasePittsburg TechFest
June 2, 2018
chadgreen@chadgreen.co
m
chadgreen.com
@ChadGreen
ChadwickEGreen
Chad Green, Data & Solutions
Architect
ProgressiveHealth
Database as a Service (DaaS)
Cloud computing service model that provides
users with some form of access to a database
without the need for setting up physical
hardware, installing software
Options to Bring Your Database to the
Cloud
Getting Started with Azure SQL
Database
Microsoft’s Data Platform
page
05
• Four basic options for hosting SQL Server
• SQL Server on physical machines
• SQL Server in on-premise virtualized machines
• SQL Server in Azure Virtual Machine
• Azure SQL Database
Getting Started with Azure SQL
Database
Microsoft’s Data Platform
page
06
Getting Started with Azure SQL
Database
Why Azure SQL Database
page
07
Less expensive than on-premise/hosted
Less database-related downtime
Five-year ROI
Increase in IT staff efficiencies
Total five-year average discounted business
benefits per Azure SQL Database
Payback period
53.2
%
46.7
%
98.0
%
18.7k
406% 8.6
Months
Getting Started with Azure SQL
Database
page
08
Azure SQL
Database
New cloud-designed applications that
have time constraints in development
and marketing
Teams that need built-in high
availability, disaster recovery, and
upgrade for the database
Teams that do not want to manage the
underlying operating system and
configuration settings
Databases of up to 4-TB
SQL Server on Azure
VMsExisting applications that require fast
migration to the cloud with minimal
change
Teams that can configure and mange
high availability, disaster recovery, and
patching for SQL Server
You need a customized environment
with full administrative rights
SQL Server instances with up to 64-TB
of storage
Azure SQL Database versus SQL Server on Azure Virtual
Machines
Getting Started with Azure SQL
Database
page
09
Azure SQL
Database
New cloud-designed applications that
have time constraints in development
and marketing
Teams that need built-in high
availability, disaster recovery, and
upgrade for the database
Teams that do not want to manage the
underlying operating system and
configuration settings
Databases of up to 4-TB
SQL Server on Azure
VMsExisting applications that require fast
migration to the cloud with minimal
change
Teams that can configure and mange
high availability, disaster recovery, and
patching for SQL Server
You need a customized environment
with full administrative rights
SQL Server instances with up to 64-TB
of storage
Azure SQL Database versus SQL Server on Azure Virtual
Machines
Getting Started with Azure SQL
Database
page
010
Azure SQL
Database
• DaaS hosted in Azure cloud
that falls into SaaS and
PaaS
• Develop directory on the
service using built-in
features and functionality
• Pay-as-you-go
• Options to scale up or out
SQL Server on Azure
VMs
• IaaS
• Built on standardized
hardware that is owned,
hosted, and maintained by
Microsoft
• Pay-as-you-go or bring your
own license
• Full administrative rights
Azure SQL Database versus SQL Server on Azure Virtual
Machines
Getting Started with Azure SQL
Database
SQL Server Features Not
Supported
page
011
• Change Data Capture
• Common Language Runtime
• Cross-database queries (Elastic queries yes)
• Cross-database transactions
• Database mail
• Database mirroring
• Data Quality Services
• Database snapshots
• Most DBCC statements supported
• Most DDL statements supported
• Only Database DDL Triggers
• Distributed partition views
• Distributed transactions (Elastic transactions
yes)
• Most DML triggers supported
• Most DMVs supported
• Event notifications
• Some extended events
• Extended stored procedures
• Filestream
• Most functions supported
• Master Data Services
• Minimal logging in bulk import
• Modifying system data
• OPENDATASOURCE
• OPENQUERY
• OPENROWSET
• Polybase
• Policy-based management
• Resource governor
• RESTORE statements
• Sematic search
• Service Broker
• Server configuration settings
• SQL Server Agent
• SQL Server Analysis Services (SSAS)
• SQL Server Auditing
• SQL Server Profiler
• SQL Sever Reporting Services (SSRS)
• Only some system stored procedures supported
• Only some system catalog views supported
• Trace flags
What is Azure SQL
Database
Getting Started with SQL Azure
Database
What is SQL Azure
Database
page
013
Azure SQL Database is a
cloud-based relational
database service, built on the
Microsoft SQL Server engine
designed to deliver
predictable performance and
scalability, with virtually no
downtime and near-zero
administration.
SQL Server with out the administration
headaches!
Scalable Performance and
Pools
Getting Started with Azure SQL
Database
Scalable Performance and Pools
page
015
• Adjust performance and scale without downtime
Getting Started with Azure SQL
Database
Scalable Performance and Pools
page
016
• Elastic Pools to maximize resource utilization
Getting Started with Azure SQL
Database
Scalable Performance and Pools
page
017
• Blend single databases with pooled databases
Getting Started with Azure SQL
Database
Scalable Performance and Pools
page
018
• Extensive monitoring and alerting capabilities
Built-In
Intelligence
Getting Started with Azure SQL
Database
Built-In Intelligence
page
020
• Automatic performance monitoring and tuning
• Automatic Index Management
• Automatic Plan Correction
Getting Started with Azure SQL
Database
Built-In Intelligence
page
021
• Automatic performance monitoring and tuning
• Automatic Index Management
• Automatic Plan Correction
• Adaptive Query Processing
Getting Started with Azure SQL
Database
Built-In Intelligence
page
022
• Automatic performance monitoring and tuning
• Automatic Index Management
• Automatic Plan Correction
• Adaptive Query Processing
• Intelligent Threat Detection
Advanced Security and
Compliance
Getting Started with Azure SQL
Database
Advanced Security and
Compliance
page
024
• Auditing for compliance and security
Getting Started with Azure SQL
Database
Advanced Security and
Compliance
page
025
• Auditing for compliance and security
• Data encryption at rest
Getting Started with Azure SQL
Database
Advanced Security and
Compliance
page
026
• Auditing for compliance and security
• Data encryption at rest
• Data encryption in motion
Getting Started with Azure SQL
Database
Advanced Security and
Compliance
page
027
• Auditing for compliance and security
• Data encryption at rest
• Data encryption in motion
• Dynamic data masking
Getting Started with Azure SQL
Database
Advanced Security and
Compliance
page
028
• Auditing for compliance and security
• Data encryption at rest
• Data encryption in motion
• Dynamic data masking
• Row-level security (RLS)
Getting Started with Azure SQL
Database
Advanced Security and
Compliance
page
029
• Auditing for compliance and security
• Data encryption at rest
• Data encryption in motion
• Dynamic data masking
• Row-level security (RLS)
• Azure Active Directory integration and multi-factor
authentication
Getting Started with Azure SQL
Database
Advanced Security and
Compliance
page
030
• Auditing for compliance and security
• Data encryption at rest
• Data encryption in motion
• Dynamic data masking
• Row-level security (RLS)
• Azure Active Directory integration and multi-factor
authentication
• Compliance certification
Getting Started with Azure SQL
Database
Microsoft Azure Compliance
Offerings
page
031
Pricing Models
Getting Started with Azure SQL
Database
page
033
DT
U
• Based upon bundled
measure of compute,
storage, and IO resources
• Performance levels
expressed in terms of
Database Transaction Units
(DTUs) and elastic Database
Transaction Units (eDTUs)
• Best for customers who want
simple, pre-configured
resource options
vCor
e
• Allows Independently scale
compute and storage – up to
80 vCores, 4-Tb of data
storage, and 200,000 IOPS
• Allows you to use Azure
Hybrid Benefit for SQL
Server to gain cost savings
• Best for customers who
value flexibility, control, and
transparency
Azure SQL Database Pricing Models
(Black Box) (Transparent
Box)
Getting Started with Azure SQL
Database
What are Database Transaction Units
(DTUs)
page
034
Getting Started with Azure SQL
Database
What are Database Transaction Units
(DTUs)
page
035
Getting Started with Azure SQL
Database
What are elastic Database Transaction Units
(eDTUs)
page
036
Getting Started with Azure SQL
Database
How can I determine the number of DTUs needed by my
workload
page
037
• DTU Calculator – dtucalculator.azurewebsites.net
• SQL Database Query Performance Insight
• sys.dm_db_resource_stats
• sys.resource_stats
Getting Started with Azure SQL
Database
More details about vCore-based purchasing model
page
038
• Represents the logical CPU offered with an option to choose
between generations of hardware
• Flexibility, control, transparency of individual resource
consumption, and straightforward way to translate on-
premises workload requirements to the cloud
• Allows you to scale compute, memory, and storage
• Pay for
• Compute (service tier + number of vCores + generation of hardware)
• Type and amount of data and log storage
• Number of IOs
• Backup storage (RA-GRS)
Demos
Getting Started with Azure SQL
Database
Demos
page
040
• Create an Azure SQL Database
• Add records to the database
• Use Azure SQL Query
• Dynamic Data Masking
• Geo-Replication
• Apply Performance Recommendations
• Enable Automatic Tuning
Create an Azure SQL
Database
Getting Started with Azure SQL
Database
Create an Azure SQL Database
page
042
Getting Started with Azure SQL
Database
Create an Azure SQL Database
page
043
Getting Started with Azure SQL
Database
Create an Azure SQL Database
page
044
Getting Started with Azure SQL
Database
Create an Azure SQL Database
page
045
Getting Started with Azure SQL
Database
Create an Azure SQL Database
page
046
Getting Started with Azure SQL
Database
Create an Azure SQL Database
page
047
Getting Started with Azure SQL
Database
Create an Azure SQL Database
page
048
Getting Started with Azure SQL
Database
Create an Azure SQL Database
page
049
Add records to the
database
Getting Started with Azure SQL
Database
Add Records to the Database
page
051
Getting Started with Azure SQL
Database
Add Records to the Database
page
052
Getting Started with Azure SQL
Database
Add Records to the Database
page
053
Getting Started with Azure SQL
Database
Add Records to the Database
page
054
Getting Started with Azure SQL
Database
Add Records to the Database
page
055
Getting Started with Azure SQL
Database
Add Records to the Database
page
056
Getting Started with Azure SQL
Database
Add Records to the Database
page
057
Getting Started with Azure SQL
Database
Add Records to the Database
page
058
Getting Started with Azure SQL
Database
Add Records to the Database
page
059
Use Azure SQL Query
Getting Started with Azure SQL
Database
Use Azure SQL Query
page
061
Getting Started with Azure SQL
Database
Use Azure SQL Query
page
062
Getting Started with Azure SQL
Database
Use Azure SQL Query
page
063
Getting Started with Azure SQL
Database
Use Azure SQL Query
page
064
Getting Started with Azure SQL
Database
Use Azure SQL Query
page
065
Dynamic Data Masking
Getting Started with Azure SQL
Database
Dynamic Data Masking
page
067
Getting Started with Azure SQL
Database
Dynamic Data Masking
page
068
Getting Started with Azure SQL
Database
Dynamic Data Masking
page
069
Getting Started with Azure SQL
Database
Dynamic Data Masking
page
070
Getting Started with Azure SQL
Database
Dynamic Data Masking
page
071
Geo-Replication
Getting Started with Azure SQL
Database
Geo-Replication
page
073
Getting Started with Azure SQL
Database
Geo-Replication
page
074
Getting Started with Azure SQL
Database
Geo-Replication
page
075
Getting Started with Azure SQL
Database
Geo-Replication
page
076
Getting Started with Azure SQL
Database
Geo-Replication
page
077
Getting Started with Azure SQL
Database
Geo-Replication
page
078
Getting Started with Azure SQL
Database
Geo-Replication
page
079
Getting Started with Azure SQL
Database
Geo-Replication
page
080
Getting Started with Azure SQL
Database
Geo-Replication
page
081
Getting Started with Azure SQL
Database
Geo-Replication
page
082
Getting Started with Azure SQL
Database
Geo-Replication
page
083
Getting Started with Azure SQL
Database
Geo-Replication
page
084
Getting Started with Azure SQL
Database
Geo-Replication
page
085
Getting Started with Azure SQL
Database
Geo-Replication
page
086
chadgreen@chadgreen.com
chadgreen.com
@ChadGreen
ChadwickEGreen
bit.ly/PTFSQLD
thank you.

Getting Started with Azure SQL Database (Presented at Pittsburgh TechFest 2018)

  • 1.
    Getting Started withAzure SQL DatabasePittsburg TechFest June 2, 2018
  • 2.
  • 3.
    Database as aService (DaaS) Cloud computing service model that provides users with some form of access to a database without the need for setting up physical hardware, installing software
  • 4.
    Options to BringYour Database to the Cloud
  • 5.
    Getting Started withAzure SQL Database Microsoft’s Data Platform page 05 • Four basic options for hosting SQL Server • SQL Server on physical machines • SQL Server in on-premise virtualized machines • SQL Server in Azure Virtual Machine • Azure SQL Database
  • 6.
    Getting Started withAzure SQL Database Microsoft’s Data Platform page 06
  • 7.
    Getting Started withAzure SQL Database Why Azure SQL Database page 07 Less expensive than on-premise/hosted Less database-related downtime Five-year ROI Increase in IT staff efficiencies Total five-year average discounted business benefits per Azure SQL Database Payback period 53.2 % 46.7 % 98.0 % 18.7k 406% 8.6 Months
  • 8.
    Getting Started withAzure SQL Database page 08 Azure SQL Database New cloud-designed applications that have time constraints in development and marketing Teams that need built-in high availability, disaster recovery, and upgrade for the database Teams that do not want to manage the underlying operating system and configuration settings Databases of up to 4-TB SQL Server on Azure VMsExisting applications that require fast migration to the cloud with minimal change Teams that can configure and mange high availability, disaster recovery, and patching for SQL Server You need a customized environment with full administrative rights SQL Server instances with up to 64-TB of storage Azure SQL Database versus SQL Server on Azure Virtual Machines
  • 9.
    Getting Started withAzure SQL Database page 09 Azure SQL Database New cloud-designed applications that have time constraints in development and marketing Teams that need built-in high availability, disaster recovery, and upgrade for the database Teams that do not want to manage the underlying operating system and configuration settings Databases of up to 4-TB SQL Server on Azure VMsExisting applications that require fast migration to the cloud with minimal change Teams that can configure and mange high availability, disaster recovery, and patching for SQL Server You need a customized environment with full administrative rights SQL Server instances with up to 64-TB of storage Azure SQL Database versus SQL Server on Azure Virtual Machines
  • 10.
    Getting Started withAzure SQL Database page 010 Azure SQL Database • DaaS hosted in Azure cloud that falls into SaaS and PaaS • Develop directory on the service using built-in features and functionality • Pay-as-you-go • Options to scale up or out SQL Server on Azure VMs • IaaS • Built on standardized hardware that is owned, hosted, and maintained by Microsoft • Pay-as-you-go or bring your own license • Full administrative rights Azure SQL Database versus SQL Server on Azure Virtual Machines
  • 11.
    Getting Started withAzure SQL Database SQL Server Features Not Supported page 011 • Change Data Capture • Common Language Runtime • Cross-database queries (Elastic queries yes) • Cross-database transactions • Database mail • Database mirroring • Data Quality Services • Database snapshots • Most DBCC statements supported • Most DDL statements supported • Only Database DDL Triggers • Distributed partition views • Distributed transactions (Elastic transactions yes) • Most DML triggers supported • Most DMVs supported • Event notifications • Some extended events • Extended stored procedures • Filestream • Most functions supported • Master Data Services • Minimal logging in bulk import • Modifying system data • OPENDATASOURCE • OPENQUERY • OPENROWSET • Polybase • Policy-based management • Resource governor • RESTORE statements • Sematic search • Service Broker • Server configuration settings • SQL Server Agent • SQL Server Analysis Services (SSAS) • SQL Server Auditing • SQL Server Profiler • SQL Sever Reporting Services (SSRS) • Only some system stored procedures supported • Only some system catalog views supported • Trace flags
  • 12.
    What is AzureSQL Database
  • 13.
    Getting Started withSQL Azure Database What is SQL Azure Database page 013 Azure SQL Database is a cloud-based relational database service, built on the Microsoft SQL Server engine designed to deliver predictable performance and scalability, with virtually no downtime and near-zero administration. SQL Server with out the administration headaches!
  • 14.
  • 15.
    Getting Started withAzure SQL Database Scalable Performance and Pools page 015 • Adjust performance and scale without downtime
  • 16.
    Getting Started withAzure SQL Database Scalable Performance and Pools page 016 • Elastic Pools to maximize resource utilization
  • 17.
    Getting Started withAzure SQL Database Scalable Performance and Pools page 017 • Blend single databases with pooled databases
  • 18.
    Getting Started withAzure SQL Database Scalable Performance and Pools page 018 • Extensive monitoring and alerting capabilities
  • 19.
  • 20.
    Getting Started withAzure SQL Database Built-In Intelligence page 020 • Automatic performance monitoring and tuning • Automatic Index Management • Automatic Plan Correction
  • 21.
    Getting Started withAzure SQL Database Built-In Intelligence page 021 • Automatic performance monitoring and tuning • Automatic Index Management • Automatic Plan Correction • Adaptive Query Processing
  • 22.
    Getting Started withAzure SQL Database Built-In Intelligence page 022 • Automatic performance monitoring and tuning • Automatic Index Management • Automatic Plan Correction • Adaptive Query Processing • Intelligent Threat Detection
  • 23.
  • 24.
    Getting Started withAzure SQL Database Advanced Security and Compliance page 024 • Auditing for compliance and security
  • 25.
    Getting Started withAzure SQL Database Advanced Security and Compliance page 025 • Auditing for compliance and security • Data encryption at rest
  • 26.
    Getting Started withAzure SQL Database Advanced Security and Compliance page 026 • Auditing for compliance and security • Data encryption at rest • Data encryption in motion
  • 27.
    Getting Started withAzure SQL Database Advanced Security and Compliance page 027 • Auditing for compliance and security • Data encryption at rest • Data encryption in motion • Dynamic data masking
  • 28.
    Getting Started withAzure SQL Database Advanced Security and Compliance page 028 • Auditing for compliance and security • Data encryption at rest • Data encryption in motion • Dynamic data masking • Row-level security (RLS)
  • 29.
    Getting Started withAzure SQL Database Advanced Security and Compliance page 029 • Auditing for compliance and security • Data encryption at rest • Data encryption in motion • Dynamic data masking • Row-level security (RLS) • Azure Active Directory integration and multi-factor authentication
  • 30.
    Getting Started withAzure SQL Database Advanced Security and Compliance page 030 • Auditing for compliance and security • Data encryption at rest • Data encryption in motion • Dynamic data masking • Row-level security (RLS) • Azure Active Directory integration and multi-factor authentication • Compliance certification
  • 31.
    Getting Started withAzure SQL Database Microsoft Azure Compliance Offerings page 031
  • 32.
  • 33.
    Getting Started withAzure SQL Database page 033 DT U • Based upon bundled measure of compute, storage, and IO resources • Performance levels expressed in terms of Database Transaction Units (DTUs) and elastic Database Transaction Units (eDTUs) • Best for customers who want simple, pre-configured resource options vCor e • Allows Independently scale compute and storage – up to 80 vCores, 4-Tb of data storage, and 200,000 IOPS • Allows you to use Azure Hybrid Benefit for SQL Server to gain cost savings • Best for customers who value flexibility, control, and transparency Azure SQL Database Pricing Models (Black Box) (Transparent Box)
  • 34.
    Getting Started withAzure SQL Database What are Database Transaction Units (DTUs) page 034
  • 35.
    Getting Started withAzure SQL Database What are Database Transaction Units (DTUs) page 035
  • 36.
    Getting Started withAzure SQL Database What are elastic Database Transaction Units (eDTUs) page 036
  • 37.
    Getting Started withAzure SQL Database How can I determine the number of DTUs needed by my workload page 037 • DTU Calculator – dtucalculator.azurewebsites.net • SQL Database Query Performance Insight • sys.dm_db_resource_stats • sys.resource_stats
  • 38.
    Getting Started withAzure SQL Database More details about vCore-based purchasing model page 038 • Represents the logical CPU offered with an option to choose between generations of hardware • Flexibility, control, transparency of individual resource consumption, and straightforward way to translate on- premises workload requirements to the cloud • Allows you to scale compute, memory, and storage • Pay for • Compute (service tier + number of vCores + generation of hardware) • Type and amount of data and log storage • Number of IOs • Backup storage (RA-GRS)
  • 39.
  • 40.
    Getting Started withAzure SQL Database Demos page 040 • Create an Azure SQL Database • Add records to the database • Use Azure SQL Query • Dynamic Data Masking • Geo-Replication • Apply Performance Recommendations • Enable Automatic Tuning
  • 41.
    Create an AzureSQL Database
  • 42.
    Getting Started withAzure SQL Database Create an Azure SQL Database page 042
  • 43.
    Getting Started withAzure SQL Database Create an Azure SQL Database page 043
  • 44.
    Getting Started withAzure SQL Database Create an Azure SQL Database page 044
  • 45.
    Getting Started withAzure SQL Database Create an Azure SQL Database page 045
  • 46.
    Getting Started withAzure SQL Database Create an Azure SQL Database page 046
  • 47.
    Getting Started withAzure SQL Database Create an Azure SQL Database page 047
  • 48.
    Getting Started withAzure SQL Database Create an Azure SQL Database page 048
  • 49.
    Getting Started withAzure SQL Database Create an Azure SQL Database page 049
  • 50.
    Add records tothe database
  • 51.
    Getting Started withAzure SQL Database Add Records to the Database page 051
  • 52.
    Getting Started withAzure SQL Database Add Records to the Database page 052
  • 53.
    Getting Started withAzure SQL Database Add Records to the Database page 053
  • 54.
    Getting Started withAzure SQL Database Add Records to the Database page 054
  • 55.
    Getting Started withAzure SQL Database Add Records to the Database page 055
  • 56.
    Getting Started withAzure SQL Database Add Records to the Database page 056
  • 57.
    Getting Started withAzure SQL Database Add Records to the Database page 057
  • 58.
    Getting Started withAzure SQL Database Add Records to the Database page 058
  • 59.
    Getting Started withAzure SQL Database Add Records to the Database page 059
  • 60.
  • 61.
    Getting Started withAzure SQL Database Use Azure SQL Query page 061
  • 62.
    Getting Started withAzure SQL Database Use Azure SQL Query page 062
  • 63.
    Getting Started withAzure SQL Database Use Azure SQL Query page 063
  • 64.
    Getting Started withAzure SQL Database Use Azure SQL Query page 064
  • 65.
    Getting Started withAzure SQL Database Use Azure SQL Query page 065
  • 66.
  • 67.
    Getting Started withAzure SQL Database Dynamic Data Masking page 067
  • 68.
    Getting Started withAzure SQL Database Dynamic Data Masking page 068
  • 69.
    Getting Started withAzure SQL Database Dynamic Data Masking page 069
  • 70.
    Getting Started withAzure SQL Database Dynamic Data Masking page 070
  • 71.
    Getting Started withAzure SQL Database Dynamic Data Masking page 071
  • 72.
  • 73.
    Getting Started withAzure SQL Database Geo-Replication page 073
  • 74.
    Getting Started withAzure SQL Database Geo-Replication page 074
  • 75.
    Getting Started withAzure SQL Database Geo-Replication page 075
  • 76.
    Getting Started withAzure SQL Database Geo-Replication page 076
  • 77.
    Getting Started withAzure SQL Database Geo-Replication page 077
  • 78.
    Getting Started withAzure SQL Database Geo-Replication page 078
  • 79.
    Getting Started withAzure SQL Database Geo-Replication page 079
  • 80.
    Getting Started withAzure SQL Database Geo-Replication page 080
  • 81.
    Getting Started withAzure SQL Database Geo-Replication page 081
  • 82.
    Getting Started withAzure SQL Database Geo-Replication page 082
  • 83.
    Getting Started withAzure SQL Database Geo-Replication page 083
  • 84.
    Getting Started withAzure SQL Database Geo-Replication page 084
  • 85.
    Getting Started withAzure SQL Database Geo-Replication page 085
  • 86.
    Getting Started withAzure SQL Database Geo-Replication page 086
  • 87.
  • 88.