SlideShare a Scribd company logo
1 of 50
Download to read offline
Azure SQL Database
for the
SQL Server DBA
https://tinyurl.com/y9opcae5
EVALUATIONS
Ask your
Questions
PRESENTERINFO
1982 I started working with computers
1988 I started my professional career in computers industry
1996 I started working with SQL Server 6.0
1998 I earned my first certification at Microsoft as
Microsoft Certified Solution Developer (3rd in Greece)
1999 I started my career as Microsoft Certified Trainer (MCT) with more than
30.000 hours of training until now!
2010 I became for first time Microsoft MVP on Data Platform
I created the SQL School Greece www.sqlschool.gr
2012 I became MCT Regional Lead by Microsoft Learning Program.
2013 I was certified as MCSE : Data Platform
I was certified as MCSE : Business Intelligence
2016 I was certified as MCSE: Data Management & Analytics
2017 Certified as MCSA : Machine Learning
Recertified as MCSE: Data Management & Analytics
Antonios
Chatzipavlis
Data Solutions
Consultant & Trainer
MVP on Data Platform
MCT, MCSE, MCITP, MCPD, MCSD, MCDBA,
MCSA, MCTS, MCAD, MCP, OCA, ITIL-F
Μια πηγή ενημέρωσης για την Microsoft Data Platform
προς τους Έλληνες IT Professionals, DBAs, Developers,
Information Workers αλλά και απλούς χομπίστες που
απλά τους αρέσει ο SQL Server.
Help line : help@sqlschool.gr
• Articles about SQL Server
• SQL Server News
• SQL Nights
• Webcasts
• Downloads
• Resources
What we are doing here Follow us in socials
fb/sqlschoolgr
fb/groups/sqlschool
@antoniosch
@sqlschool
yt/c/SqlschoolGr
SQL School Greece group
SELECT KNOWLEDGE
FROM SQL SERVER
Connect with PASS
Sign up for a free membership today at:
pass.org
is the PASS Local Group in Greece
PASS VIRTUAL CHAPTERS
http://www.sqlsaturday.com/731/eventhome.aspx
LET’S START
WHAT IS A ZURE SQL DATABASE?
The service users pay
according to their usage
of the service.
The service is paid by
the hour.
The hourly rate is based
on the highest service
tier selected during that
hour.
Users can scale up or
down on demand
User can create and
destroy environments
on demand
The service provider
manages and owns the
database software.
The service provider
doing common
administration tasks
(backups, HA, OS etc.)
CLOUD FIRST RELEASE MODEL
• The service provides a database engine.
• You can’t restore a SQL Server backup directly to Azure SQL Database.
• You are not the Sysadmin of your server.
• The service provides its own High Availability
• There’s no SQL Agent service.
• System views like sys.dm_exec_requests operate at the database scope, not
server scope like SQL Server.
• There is no Error log file to open, but a system log view instead.
• TDE is an Enterprise feature on SQL Server, available in all tiers on Azure SQL
Database.
• Auditing is an Enterprise feature available in all tiers of Azure SQL Database.
• Azure also has a threat detection service that can alert you if it detects SQL
injection attempts, logins from new locations or other unusual patterns.
A ZURE SQL DATABASE VS. SQL SERVER
DBA’S TASKS AND RESPONSIBILITIES
Classic DBA
• Maintain the Operating System
• Maintain SQL Server
• Setup Backups
• High Availability
• Disaster Recovery
• Performance
• Change Control
• Security
Azure DBA
• Choosing the right service tier
• Test the HADR
• Performance
• Change Control
• Security
• Azure SQL DB offers 3 service tiers:
- Basic (2GB, 7d RTO, 5 DTU)
- Standard (250GB, 35d RTO, 10-100 DTU)
- Premium (1000GB, 35d RTO, 125-4000 DTU,
In-Memory, Columnstore Indexes)
• The service tiers defines:
- Size
- Performance
- Concurrency
- Recovery
- Features
UNDERSTANDING THE SERVICE TIERS
• Performance is measured in DTUs.
- DTU = CPU + Memory + Data IO +
Log IO
• Multiple databases can share
resources through elastic database
pools.
• The service also offers other elastic
database capabilities.
- Elastic DB .NET Library
- Elastic DB Jobs
- Elastic Query
For an initial estimate, there is a DTU Calculator at
http://dtucalculator.azurewebsites.net
HOW DO I KNOW HOW MANY DTUS I NEED TO
MIGRATE MY SQL SERVER DATABASE ON AZURE?
DTU CALCUL ATOR
GET TING STARTED
Create an Azure SQL
Database Server
• A server is a logical entity for
grouping databases.
• Pick a Name
• Pick a Region
Create a Database
inside the Server
• Pick a DB Server
• Pick a DB Name
• Pick a Service Tier
PROVISIONING A ZURE SQL DATABASE
• Create a resource > Databases > SQL DatabaseAzure Portal
• New-AzureRmSqlDatabase CmdletPowerShell
• CREATE DATABASE commandT-SQL
PROVISIONING
A ZURE SQL DATABASE
CONNECTING TO A DATABASE
SQL Authentication
Individual accounts only.
Multi-server access requires multiple users.
No built-in password expiration.
Azure AD Authentication
Individual and group accounts.
One identity can be granted access to
multiple servers.
Password expiration follows the AAD policy.
CONFIGURING
THE FIREWALL RULES TO
CONNECT TO THE DATABASE
• Backups happen automatically as part
of the service
• Retention Period of Backups
- 7 days for Basic tier
- 35 days for Standard tier
- 35 days for Premium tier
• Backups are Geo-Replicated
- Backups are replicated to a paired Azure
region by the service.
- In the event of a region outage, you can
restore your backups to another region.
• Backup Schedule
- Weekly Full Backup
- Hourly Differential Backup
- Every 5 min Transaction Log Backup
BACKUP CAPABILITIES
• In case of Archiving
- Manually export the database to BACPAC and keep
copies on Azure Blob Storage.
• All databases support Point in Time Recovery
with a 12 Hour RTO and 5 minute RPO for the
in-region backups
• Azure provides 2x your max storage size as
included backup storage.
• What happens if you reach this amount of
backup storage?
- Reduce the retention period by contacting Azure
support.
- Pay for extra backup storage billed at the standard
Read-Access Geographically Redundant Storage
rate.
• If you delete a database, you can restore as
long as you’re still inside the retention period.
• If you delete the server, all backups are
deleted with no restore capability.
• Restores can be done to the logical server hosting the database or to another
region.
• Local Restores
- A new database on the same logical server recovered to a specified point in time
- A database on the same logical server recovered to the deletion time
- You cannot overwrite an existing database
- If you want to replace a database with a restored copy, you can rename the original and then rename
the restored database.
• Geo Restores
- A new database on any server on any region up to the latest geo-replicated backup
- Full and differentials are geo-replicated
- Geo-Restores have an 1 hour RPO due to the possible delay in geo-replication.
RESTORE CAPABILITIES
Azure keeps 3 local high available copies
in the server region
In case of region disaster we can use
geo-restore or Azure Database Geo-
Replication
BUILT-IN HIGH
AVAILABILITY
• A component of Azure SQL Database that provides service managed database
replicas that can be used for read-only scale and failover.
• Provides up to four readable database replicas.
- The service does not provide the option for synchronous replication.
- Because the replication is asynchronous, there’s always a risk of data loss due to
network latency.
- If you want to make a session wait until the current log has been completely replicated
you can use the sp_wait_for_database_copy_sync procedure.
• Active Geo-Replication provides a 30 second RTO and 5 second RPO.
• Each active geo-replication secondary is billed at full price.
A ZURE DATABASE GEO-REPLICATION
DATABASE FAILOVER METHODS
PLANNED
• ALTER DATABASE FAILOVER
• Initiated by an administrator
• The system switches to synchronous
mode temporarily to avoid data loss
• The old primary becomes a
secondary and starts syncing
immediately
UNPLANNED
• ALTER DATABASE
FORCE_FAILEOVER_ALLOW_DATA_
LOSS
• Triggered by a real region outage
• The role is changed immediately so
data loss is possible
• When the old primary eventually
comes back, an incremental backup
is taken and it becomes a
secondary
The user configuring Geo-Replication or executing the FAILOVER command must be DBManager on both the primary server and the secondary server.
ACTIVE GEO-REPLICATION
• A proper migration methodology will ensure a successful migration project.
• Direct backup restore from SQL Server is not supported.
• Migrating to the service can be done with a variety of tools.
• Short downtime migrations can be done with Transactional Replication.
• Migrating from the service can be done with a BACPAC file export.
MIGRATION TO A ZURE SQL DATABASE
MIGRATION METHODOLOGY
Benefits
Stoppers
Service
Model
Service
Tier
Region
Migration
Tool
MIGRATING TOOLS
Migration Wizard on
SSMS
• All-in-one process
• Big Downtime
• Not suitable for Large
Databases
Transactional Replication
• Multi-step process
• More control in process
• Complex process
• Small Downtime
• Suitable for Large
Databases
• Source must be
• SQL 2012 SP2 CU8
• SQL 2014 SP1 CU3
• SQL 2016
• SQL 2017
Manual Export/Import
• Multi-step process
• More control in process
• Large Downtime
• Suitable for Large
Databases
• if downtime is
acceptable
USING
MIGRATION WIZARD
ON SSMS
• Azure Metrics Alerts
• System Views to track performance
• Tuning Tools and Automation
MONITORING A ZURE SQL DATABASE
• Blocked by Firewall
• Failed Connections
• Successful
Connections
A ZURE METRICS ALERTS
• DTU Percentage
• DTU Limit
• DTU Used
• CPU Percentage
• Log IO Percentage
• Data IO Percentage
• Deadlocks
• Sessions Percentage
• Total Database Size
• Database Size
Percentage
• Workers Percentage
• In-Memory OLTP
Storage Percentage
CREATE
A ZURE METRIC ALERT
• Resource Usage Views
- Average CPU %
- Average Data IO %
- Average Log Write %
- Average Memory %
• Wait Stats View
PERFORMANCE SYSTEM VIEWS
• Server scope (master)
• Measures in 5 minute intervals
• Retains 14 days of history
• Captures when resource usage changes
sys.resource_stats
• Database scope
• Measures in 15 second intervals
• Retains 1 hour of history
• Captures even with no activity
sys.dm_db_resource_stats
• Performance Overview
• Performance Recommendations
• Query Performance Insights
• Automatic Tuning
A ZURE PERFORMANCE TOOLS
Thank you
SELECT KNOWLEDGE FROM SQL SERVER
Copyright © 2018 SQLschool.gr. All right reserved.
PRESENTER MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION

More Related Content

What's hot

Azure Introduction
Azure IntroductionAzure Introduction
Azure Introductionbrunoterkaly
 
Azure SQL Database Managed Instance - technical overview
Azure SQL Database Managed Instance - technical overviewAzure SQL Database Managed Instance - technical overview
Azure SQL Database Managed Instance - technical overviewGeorge Walters
 
Azure SQL Database Managed Instance
Azure SQL Database Managed InstanceAzure SQL Database Managed Instance
Azure SQL Database Managed InstanceJames Serra
 
Intro to Azure Data Factory v1
Intro to Azure Data Factory v1Intro to Azure Data Factory v1
Intro to Azure Data Factory v1Eric Bragas
 
Microsoft Azure Technical Overview
Microsoft Azure Technical OverviewMicrosoft Azure Technical Overview
Microsoft Azure Technical Overviewgjuljo
 
Microsoft Azure Overview Infographic
Microsoft Azure Overview InfographicMicrosoft Azure Overview Infographic
Microsoft Azure Overview InfographicMicrosoft Azure
 
Azure Site Recovery - BC/DR - Migrations & assessments in 60 minutes!
Azure Site Recovery - BC/DR - Migrations & assessments in 60 minutes!Azure Site Recovery - BC/DR - Migrations & assessments in 60 minutes!
Azure Site Recovery - BC/DR - Migrations & assessments in 60 minutes!Johan Biere
 
Introduction to Azure
Introduction to AzureIntroduction to Azure
Introduction to AzureRobert Crane
 
Azure Storage
Azure StorageAzure Storage
Azure StorageMustafa
 
Azure Data Factory Introduction.pdf
Azure Data Factory Introduction.pdfAzure Data Factory Introduction.pdf
Azure Data Factory Introduction.pdfMaheshPandit16
 
Azure Synapse Analytics Overview (r1)
Azure Synapse Analytics Overview (r1)Azure Synapse Analytics Overview (r1)
Azure Synapse Analytics Overview (r1)James Serra
 
Migrate to Microsoft Azure with Confidence
Migrate to Microsoft Azure with ConfidenceMigrate to Microsoft Azure with Confidence
Migrate to Microsoft Azure with ConfidenceDavid J Rosenthal
 
The Evolution of SQL Server as a Service - SQL Azure Managed Instance
The Evolution of SQL Server as a Service - SQL Azure Managed InstanceThe Evolution of SQL Server as a Service - SQL Azure Managed Instance
The Evolution of SQL Server as a Service - SQL Azure Managed InstanceJavier Villegas
 
Cloud Migration Cookbook: A Guide To Moving Your Apps To The Cloud
Cloud Migration Cookbook: A Guide To Moving Your Apps To The CloudCloud Migration Cookbook: A Guide To Moving Your Apps To The Cloud
Cloud Migration Cookbook: A Guide To Moving Your Apps To The CloudNew Relic
 
Azure Web Apps - Introduction
Azure Web Apps - IntroductionAzure Web Apps - Introduction
Azure Web Apps - IntroductionChristopher Gomez
 
Business Continuity & Disaster Recovery with Microsoft Azure
Business Continuity & Disaster Recovery with Microsoft AzureBusiness Continuity & Disaster Recovery with Microsoft Azure
Business Continuity & Disaster Recovery with Microsoft AzureAymen Mami
 

What's hot (20)

Azure Introduction
Azure IntroductionAzure Introduction
Azure Introduction
 
Azure Backup Simplifies
Azure Backup SimplifiesAzure Backup Simplifies
Azure Backup Simplifies
 
SQL Database on Azure
SQL Database on AzureSQL Database on Azure
SQL Database on Azure
 
Azure SQL Database Managed Instance - technical overview
Azure SQL Database Managed Instance - technical overviewAzure SQL Database Managed Instance - technical overview
Azure SQL Database Managed Instance - technical overview
 
Azure SQL Database Managed Instance
Azure SQL Database Managed InstanceAzure SQL Database Managed Instance
Azure SQL Database Managed Instance
 
Intro to Azure Data Factory v1
Intro to Azure Data Factory v1Intro to Azure Data Factory v1
Intro to Azure Data Factory v1
 
Microsoft Azure Technical Overview
Microsoft Azure Technical OverviewMicrosoft Azure Technical Overview
Microsoft Azure Technical Overview
 
Microsoft Azure Overview Infographic
Microsoft Azure Overview InfographicMicrosoft Azure Overview Infographic
Microsoft Azure Overview Infographic
 
Azure Site Recovery - BC/DR - Migrations & assessments in 60 minutes!
Azure Site Recovery - BC/DR - Migrations & assessments in 60 minutes!Azure Site Recovery - BC/DR - Migrations & assessments in 60 minutes!
Azure Site Recovery - BC/DR - Migrations & assessments in 60 minutes!
 
Introduction to Azure
Introduction to AzureIntroduction to Azure
Introduction to Azure
 
Azure Storage
Azure StorageAzure Storage
Azure Storage
 
OCI Overview
OCI OverviewOCI Overview
OCI Overview
 
Azure Data Factory Introduction.pdf
Azure Data Factory Introduction.pdfAzure Data Factory Introduction.pdf
Azure Data Factory Introduction.pdf
 
Azure Synapse Analytics Overview (r1)
Azure Synapse Analytics Overview (r1)Azure Synapse Analytics Overview (r1)
Azure Synapse Analytics Overview (r1)
 
Migrate to Microsoft Azure with Confidence
Migrate to Microsoft Azure with ConfidenceMigrate to Microsoft Azure with Confidence
Migrate to Microsoft Azure with Confidence
 
The Evolution of SQL Server as a Service - SQL Azure Managed Instance
The Evolution of SQL Server as a Service - SQL Azure Managed InstanceThe Evolution of SQL Server as a Service - SQL Azure Managed Instance
The Evolution of SQL Server as a Service - SQL Azure Managed Instance
 
Cloud Migration Cookbook: A Guide To Moving Your Apps To The Cloud
Cloud Migration Cookbook: A Guide To Moving Your Apps To The CloudCloud Migration Cookbook: A Guide To Moving Your Apps To The Cloud
Cloud Migration Cookbook: A Guide To Moving Your Apps To The Cloud
 
Azure Cloud PPT
Azure Cloud PPTAzure Cloud PPT
Azure Cloud PPT
 
Azure Web Apps - Introduction
Azure Web Apps - IntroductionAzure Web Apps - Introduction
Azure Web Apps - Introduction
 
Business Continuity & Disaster Recovery with Microsoft Azure
Business Continuity & Disaster Recovery with Microsoft AzureBusiness Continuity & Disaster Recovery with Microsoft Azure
Business Continuity & Disaster Recovery with Microsoft Azure
 

Similar to Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018

Webinar Slides: High Noon at AWS — Amazon RDS vs. Tungsten Clustering with My...
Webinar Slides: High Noon at AWS — Amazon RDS vs. Tungsten Clustering with My...Webinar Slides: High Noon at AWS — Amazon RDS vs. Tungsten Clustering with My...
Webinar Slides: High Noon at AWS — Amazon RDS vs. Tungsten Clustering with My...Continuent
 
Monitorando performance no Azure SQL Database
Monitorando performance no Azure SQL DatabaseMonitorando performance no Azure SQL Database
Monitorando performance no Azure SQL DatabaseVitor Fava
 
Migrating Customers to Microsoft Azure: Lessons Learned From the Field
Migrating Customers to Microsoft Azure: Lessons Learned From the FieldMigrating Customers to Microsoft Azure: Lessons Learned From the Field
Migrating Customers to Microsoft Azure: Lessons Learned From the FieldIdo Flatow
 
KoprowskiT_SQLSat409_MaintenancePlansForBeginners
KoprowskiT_SQLSat409_MaintenancePlansForBeginnersKoprowskiT_SQLSat409_MaintenancePlansForBeginners
KoprowskiT_SQLSat409_MaintenancePlansForBeginnersTobias Koprowski
 
KoprowskiT_SQLSaturday409_MaintenancePlansForBeginners
KoprowskiT_SQLSaturday409_MaintenancePlansForBeginnersKoprowskiT_SQLSaturday409_MaintenancePlansForBeginners
KoprowskiT_SQLSaturday409_MaintenancePlansForBeginnersTobias Koprowski
 
Building Scalable Applications with Microsoft Azure
Building Scalable Applications with Microsoft AzureBuilding Scalable Applications with Microsoft Azure
Building Scalable Applications with Microsoft AzureFisnik Doko
 
Dr and ha solutions with sql server azure
Dr and ha solutions with sql server azureDr and ha solutions with sql server azure
Dr and ha solutions with sql server azureMSDEVMTL
 
Azure from scratch part 3 By Girish Kalamati
Azure from scratch part 3 By Girish KalamatiAzure from scratch part 3 By Girish Kalamati
Azure from scratch part 3 By Girish KalamatiGirish Kalamati
 
Sql Start! 2020 - SQL Server Lift & Shift su Azure
Sql Start! 2020 - SQL Server Lift & Shift su AzureSql Start! 2020 - SQL Server Lift & Shift su Azure
Sql Start! 2020 - SQL Server Lift & Shift su AzureMarco Obinu
 
Scalable relational database with SQL Azure
Scalable relational database with SQL AzureScalable relational database with SQL Azure
Scalable relational database with SQL AzureShy Engelberg
 
Should I move my database to the cloud?
Should I move my database to the cloud?Should I move my database to the cloud?
Should I move my database to the cloud?James Serra
 
Sql disaster recovery
Sql disaster recoverySql disaster recovery
Sql disaster recoverySqlperfomance
 
Azure SQL Database
Azure SQL Database Azure SQL Database
Azure SQL Database nj-azure
 
01_DP-300T00A-Intro.pptx
01_DP-300T00A-Intro.pptx01_DP-300T00A-Intro.pptx
01_DP-300T00A-Intro.pptxKareemBullard1
 
A Tour of Azure SQL Databases (NOVA SQL UG 2020)
A Tour of Azure SQL Databases  (NOVA SQL UG 2020)A Tour of Azure SQL Databases  (NOVA SQL UG 2020)
A Tour of Azure SQL Databases (NOVA SQL UG 2020)Timothy McAliley
 
SQL Server Lift & Shift on Azure - SQL Saturday 921
SQL Server Lift & Shift on Azure - SQL Saturday 921SQL Server Lift & Shift on Azure - SQL Saturday 921
SQL Server Lift & Shift on Azure - SQL Saturday 921Marco Obinu
 

Similar to Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018 (20)

Azure data platform overview
Azure data platform overviewAzure data platform overview
Azure data platform overview
 
Webinar Slides: High Noon at AWS — Amazon RDS vs. Tungsten Clustering with My...
Webinar Slides: High Noon at AWS — Amazon RDS vs. Tungsten Clustering with My...Webinar Slides: High Noon at AWS — Amazon RDS vs. Tungsten Clustering with My...
Webinar Slides: High Noon at AWS — Amazon RDS vs. Tungsten Clustering with My...
 
Monitorando performance no Azure SQL Database
Monitorando performance no Azure SQL DatabaseMonitorando performance no Azure SQL Database
Monitorando performance no Azure SQL Database
 
Migrating Customers to Microsoft Azure: Lessons Learned From the Field
Migrating Customers to Microsoft Azure: Lessons Learned From the FieldMigrating Customers to Microsoft Azure: Lessons Learned From the Field
Migrating Customers to Microsoft Azure: Lessons Learned From the Field
 
KoprowskiT_SQLSat409_MaintenancePlansForBeginners
KoprowskiT_SQLSat409_MaintenancePlansForBeginnersKoprowskiT_SQLSat409_MaintenancePlansForBeginners
KoprowskiT_SQLSat409_MaintenancePlansForBeginners
 
KoprowskiT_SQLSaturday409_MaintenancePlansForBeginners
KoprowskiT_SQLSaturday409_MaintenancePlansForBeginnersKoprowskiT_SQLSaturday409_MaintenancePlansForBeginners
KoprowskiT_SQLSaturday409_MaintenancePlansForBeginners
 
A to z for sql azure databases
A to z for sql azure databasesA to z for sql azure databases
A to z for sql azure databases
 
Building Scalable Applications with Microsoft Azure
Building Scalable Applications with Microsoft AzureBuilding Scalable Applications with Microsoft Azure
Building Scalable Applications with Microsoft Azure
 
Dr and ha solutions with sql server azure
Dr and ha solutions with sql server azureDr and ha solutions with sql server azure
Dr and ha solutions with sql server azure
 
AZURE Data Related Services
AZURE Data Related ServicesAZURE Data Related Services
AZURE Data Related Services
 
Azure from scratch part 3 By Girish Kalamati
Azure from scratch part 3 By Girish KalamatiAzure from scratch part 3 By Girish Kalamati
Azure from scratch part 3 By Girish Kalamati
 
Sql Start! 2020 - SQL Server Lift & Shift su Azure
Sql Start! 2020 - SQL Server Lift & Shift su AzureSql Start! 2020 - SQL Server Lift & Shift su Azure
Sql Start! 2020 - SQL Server Lift & Shift su Azure
 
Scalable relational database with SQL Azure
Scalable relational database with SQL AzureScalable relational database with SQL Azure
Scalable relational database with SQL Azure
 
Should I move my database to the cloud?
Should I move my database to the cloud?Should I move my database to the cloud?
Should I move my database to the cloud?
 
Sql disaster recovery
Sql disaster recoverySql disaster recovery
Sql disaster recovery
 
Azure SQL Database
Azure SQL Database Azure SQL Database
Azure SQL Database
 
01_DP-300T00A-Intro.pptx
01_DP-300T00A-Intro.pptx01_DP-300T00A-Intro.pptx
01_DP-300T00A-Intro.pptx
 
A Tour of Azure SQL Databases (NOVA SQL UG 2020)
A Tour of Azure SQL Databases  (NOVA SQL UG 2020)A Tour of Azure SQL Databases  (NOVA SQL UG 2020)
A Tour of Azure SQL Databases (NOVA SQL UG 2020)
 
Exploring sql server 2016
Exploring sql server 2016Exploring sql server 2016
Exploring sql server 2016
 
SQL Server Lift & Shift on Azure - SQL Saturday 921
SQL Server Lift & Shift on Azure - SQL Saturday 921SQL Server Lift & Shift on Azure - SQL Saturday 921
SQL Server Lift & Shift on Azure - SQL Saturday 921
 

More from Antonios Chatzipavlis

Workload Management in SQL Server 2019
Workload Management in SQL Server 2019Workload Management in SQL Server 2019
Workload Management in SQL Server 2019Antonios Chatzipavlis
 
Loading Data into Azure SQL DW (Synapse Analytics)
Loading Data into Azure SQL DW (Synapse Analytics)Loading Data into Azure SQL DW (Synapse Analytics)
Loading Data into Azure SQL DW (Synapse Analytics)Antonios Chatzipavlis
 
Building diagnostic queries using DMVs and DMFs
Building diagnostic queries using DMVs and DMFs Building diagnostic queries using DMVs and DMFs
Building diagnostic queries using DMVs and DMFs Antonios Chatzipavlis
 
Designing a modern data warehouse in azure
Designing a modern data warehouse in azure   Designing a modern data warehouse in azure
Designing a modern data warehouse in azure Antonios Chatzipavlis
 
Modernizing your database with SQL Server 2019
Modernizing your database with SQL Server 2019Modernizing your database with SQL Server 2019
Modernizing your database with SQL Server 2019Antonios Chatzipavlis
 
Designing a modern data warehouse in azure
Designing a modern data warehouse in azure   Designing a modern data warehouse in azure
Designing a modern data warehouse in azure Antonios Chatzipavlis
 
Introduction to Machine Learning on Azure
Introduction to Machine Learning on AzureIntroduction to Machine Learning on Azure
Introduction to Machine Learning on AzureAntonios Chatzipavlis
 

More from Antonios Chatzipavlis (20)

Data virtualization using polybase
Data virtualization using polybaseData virtualization using polybase
Data virtualization using polybase
 
SQL server Backup Restore Revealed
SQL server Backup Restore RevealedSQL server Backup Restore Revealed
SQL server Backup Restore Revealed
 
Migrate SQL Workloads to Azure
Migrate SQL Workloads to AzureMigrate SQL Workloads to Azure
Migrate SQL Workloads to Azure
 
Machine Learning in SQL Server 2019
Machine Learning in SQL Server 2019Machine Learning in SQL Server 2019
Machine Learning in SQL Server 2019
 
Workload Management in SQL Server 2019
Workload Management in SQL Server 2019Workload Management in SQL Server 2019
Workload Management in SQL Server 2019
 
Loading Data into Azure SQL DW (Synapse Analytics)
Loading Data into Azure SQL DW (Synapse Analytics)Loading Data into Azure SQL DW (Synapse Analytics)
Loading Data into Azure SQL DW (Synapse Analytics)
 
Introduction to DAX Language
Introduction to DAX LanguageIntroduction to DAX Language
Introduction to DAX Language
 
Building diagnostic queries using DMVs and DMFs
Building diagnostic queries using DMVs and DMFs Building diagnostic queries using DMVs and DMFs
Building diagnostic queries using DMVs and DMFs
 
Exploring T-SQL Anti-Patterns
Exploring T-SQL Anti-Patterns Exploring T-SQL Anti-Patterns
Exploring T-SQL Anti-Patterns
 
Designing a modern data warehouse in azure
Designing a modern data warehouse in azure   Designing a modern data warehouse in azure
Designing a modern data warehouse in azure
 
Modernizing your database with SQL Server 2019
Modernizing your database with SQL Server 2019Modernizing your database with SQL Server 2019
Modernizing your database with SQL Server 2019
 
Designing a modern data warehouse in azure
Designing a modern data warehouse in azure   Designing a modern data warehouse in azure
Designing a modern data warehouse in azure
 
SQLServer Database Structures
SQLServer Database Structures SQLServer Database Structures
SQLServer Database Structures
 
Sqlschool 2017 recap - 2018 plans
Sqlschool 2017 recap - 2018 plansSqlschool 2017 recap - 2018 plans
Sqlschool 2017 recap - 2018 plans
 
Microsoft SQL Family and GDPR
Microsoft SQL Family and GDPRMicrosoft SQL Family and GDPR
Microsoft SQL Family and GDPR
 
Statistics and Indexes Internals
Statistics and Indexes InternalsStatistics and Indexes Internals
Statistics and Indexes Internals
 
Introduction to Azure Data Lake
Introduction to Azure Data LakeIntroduction to Azure Data Lake
Introduction to Azure Data Lake
 
Azure SQL Data Warehouse
Azure SQL Data Warehouse Azure SQL Data Warehouse
Azure SQL Data Warehouse
 
Introduction to azure document db
Introduction to azure document dbIntroduction to azure document db
Introduction to azure document db
 
Introduction to Machine Learning on Azure
Introduction to Machine Learning on AzureIntroduction to Machine Learning on Azure
Introduction to Machine Learning on Azure
 

Recently uploaded

Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusZilliz
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024The Digital Insurer
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 

Recently uploaded (20)

Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 

Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018

  • 1. Azure SQL Database for the SQL Server DBA
  • 2.
  • 5. PRESENTERINFO 1982 I started working with computers 1988 I started my professional career in computers industry 1996 I started working with SQL Server 6.0 1998 I earned my first certification at Microsoft as Microsoft Certified Solution Developer (3rd in Greece) 1999 I started my career as Microsoft Certified Trainer (MCT) with more than 30.000 hours of training until now! 2010 I became for first time Microsoft MVP on Data Platform I created the SQL School Greece www.sqlschool.gr 2012 I became MCT Regional Lead by Microsoft Learning Program. 2013 I was certified as MCSE : Data Platform I was certified as MCSE : Business Intelligence 2016 I was certified as MCSE: Data Management & Analytics 2017 Certified as MCSA : Machine Learning Recertified as MCSE: Data Management & Analytics Antonios Chatzipavlis Data Solutions Consultant & Trainer MVP on Data Platform MCT, MCSE, MCITP, MCPD, MCSD, MCDBA, MCSA, MCTS, MCAD, MCP, OCA, ITIL-F
  • 6.
  • 7. Μια πηγή ενημέρωσης για την Microsoft Data Platform προς τους Έλληνες IT Professionals, DBAs, Developers, Information Workers αλλά και απλούς χομπίστες που απλά τους αρέσει ο SQL Server. Help line : help@sqlschool.gr • Articles about SQL Server • SQL Server News • SQL Nights • Webcasts • Downloads • Resources What we are doing here Follow us in socials fb/sqlschoolgr fb/groups/sqlschool @antoniosch @sqlschool yt/c/SqlschoolGr SQL School Greece group SELECT KNOWLEDGE FROM SQL SERVER
  • 8. Connect with PASS Sign up for a free membership today at: pass.org is the PASS Local Group in Greece
  • 12. WHAT IS A ZURE SQL DATABASE? The service users pay according to their usage of the service. The service is paid by the hour. The hourly rate is based on the highest service tier selected during that hour. Users can scale up or down on demand User can create and destroy environments on demand The service provider manages and owns the database software. The service provider doing common administration tasks (backups, HA, OS etc.)
  • 14. • The service provides a database engine. • You can’t restore a SQL Server backup directly to Azure SQL Database. • You are not the Sysadmin of your server. • The service provides its own High Availability • There’s no SQL Agent service. • System views like sys.dm_exec_requests operate at the database scope, not server scope like SQL Server. • There is no Error log file to open, but a system log view instead. • TDE is an Enterprise feature on SQL Server, available in all tiers on Azure SQL Database. • Auditing is an Enterprise feature available in all tiers of Azure SQL Database. • Azure also has a threat detection service that can alert you if it detects SQL injection attempts, logins from new locations or other unusual patterns. A ZURE SQL DATABASE VS. SQL SERVER
  • 15. DBA’S TASKS AND RESPONSIBILITIES Classic DBA • Maintain the Operating System • Maintain SQL Server • Setup Backups • High Availability • Disaster Recovery • Performance • Change Control • Security Azure DBA • Choosing the right service tier • Test the HADR • Performance • Change Control • Security
  • 16. • Azure SQL DB offers 3 service tiers: - Basic (2GB, 7d RTO, 5 DTU) - Standard (250GB, 35d RTO, 10-100 DTU) - Premium (1000GB, 35d RTO, 125-4000 DTU, In-Memory, Columnstore Indexes) • The service tiers defines: - Size - Performance - Concurrency - Recovery - Features UNDERSTANDING THE SERVICE TIERS • Performance is measured in DTUs. - DTU = CPU + Memory + Data IO + Log IO • Multiple databases can share resources through elastic database pools. • The service also offers other elastic database capabilities. - Elastic DB .NET Library - Elastic DB Jobs - Elastic Query
  • 17. For an initial estimate, there is a DTU Calculator at http://dtucalculator.azurewebsites.net HOW DO I KNOW HOW MANY DTUS I NEED TO MIGRATE MY SQL SERVER DATABASE ON AZURE?
  • 19.
  • 20. GET TING STARTED Create an Azure SQL Database Server • A server is a logical entity for grouping databases. • Pick a Name • Pick a Region Create a Database inside the Server • Pick a DB Server • Pick a DB Name • Pick a Service Tier
  • 21. PROVISIONING A ZURE SQL DATABASE • Create a resource > Databases > SQL DatabaseAzure Portal • New-AzureRmSqlDatabase CmdletPowerShell • CREATE DATABASE commandT-SQL
  • 23.
  • 24. CONNECTING TO A DATABASE SQL Authentication Individual accounts only. Multi-server access requires multiple users. No built-in password expiration. Azure AD Authentication Individual and group accounts. One identity can be granted access to multiple servers. Password expiration follows the AAD policy.
  • 25. CONFIGURING THE FIREWALL RULES TO CONNECT TO THE DATABASE
  • 26.
  • 27. • Backups happen automatically as part of the service • Retention Period of Backups - 7 days for Basic tier - 35 days for Standard tier - 35 days for Premium tier • Backups are Geo-Replicated - Backups are replicated to a paired Azure region by the service. - In the event of a region outage, you can restore your backups to another region. • Backup Schedule - Weekly Full Backup - Hourly Differential Backup - Every 5 min Transaction Log Backup BACKUP CAPABILITIES • In case of Archiving - Manually export the database to BACPAC and keep copies on Azure Blob Storage. • All databases support Point in Time Recovery with a 12 Hour RTO and 5 minute RPO for the in-region backups • Azure provides 2x your max storage size as included backup storage. • What happens if you reach this amount of backup storage? - Reduce the retention period by contacting Azure support. - Pay for extra backup storage billed at the standard Read-Access Geographically Redundant Storage rate. • If you delete a database, you can restore as long as you’re still inside the retention period. • If you delete the server, all backups are deleted with no restore capability.
  • 28. • Restores can be done to the logical server hosting the database or to another region. • Local Restores - A new database on the same logical server recovered to a specified point in time - A database on the same logical server recovered to the deletion time - You cannot overwrite an existing database - If you want to replace a database with a restored copy, you can rename the original and then rename the restored database. • Geo Restores - A new database on any server on any region up to the latest geo-replicated backup - Full and differentials are geo-replicated - Geo-Restores have an 1 hour RPO due to the possible delay in geo-replication. RESTORE CAPABILITIES
  • 29. Azure keeps 3 local high available copies in the server region In case of region disaster we can use geo-restore or Azure Database Geo- Replication BUILT-IN HIGH AVAILABILITY
  • 30. • A component of Azure SQL Database that provides service managed database replicas that can be used for read-only scale and failover. • Provides up to four readable database replicas. - The service does not provide the option for synchronous replication. - Because the replication is asynchronous, there’s always a risk of data loss due to network latency. - If you want to make a session wait until the current log has been completely replicated you can use the sp_wait_for_database_copy_sync procedure. • Active Geo-Replication provides a 30 second RTO and 5 second RPO. • Each active geo-replication secondary is billed at full price. A ZURE DATABASE GEO-REPLICATION
  • 31. DATABASE FAILOVER METHODS PLANNED • ALTER DATABASE FAILOVER • Initiated by an administrator • The system switches to synchronous mode temporarily to avoid data loss • The old primary becomes a secondary and starts syncing immediately UNPLANNED • ALTER DATABASE FORCE_FAILEOVER_ALLOW_DATA_ LOSS • Triggered by a real region outage • The role is changed immediately so data loss is possible • When the old primary eventually comes back, an incremental backup is taken and it becomes a secondary The user configuring Geo-Replication or executing the FAILOVER command must be DBManager on both the primary server and the secondary server.
  • 33.
  • 34. • A proper migration methodology will ensure a successful migration project. • Direct backup restore from SQL Server is not supported. • Migrating to the service can be done with a variety of tools. • Short downtime migrations can be done with Transactional Replication. • Migrating from the service can be done with a BACPAC file export. MIGRATION TO A ZURE SQL DATABASE
  • 36. MIGRATING TOOLS Migration Wizard on SSMS • All-in-one process • Big Downtime • Not suitable for Large Databases Transactional Replication • Multi-step process • More control in process • Complex process • Small Downtime • Suitable for Large Databases • Source must be • SQL 2012 SP2 CU8 • SQL 2014 SP1 CU3 • SQL 2016 • SQL 2017 Manual Export/Import • Multi-step process • More control in process • Large Downtime • Suitable for Large Databases • if downtime is acceptable
  • 38.
  • 39. • Azure Metrics Alerts • System Views to track performance • Tuning Tools and Automation MONITORING A ZURE SQL DATABASE
  • 40. • Blocked by Firewall • Failed Connections • Successful Connections A ZURE METRICS ALERTS • DTU Percentage • DTU Limit • DTU Used • CPU Percentage • Log IO Percentage • Data IO Percentage • Deadlocks • Sessions Percentage • Total Database Size • Database Size Percentage • Workers Percentage • In-Memory OLTP Storage Percentage
  • 42.
  • 43. • Resource Usage Views - Average CPU % - Average Data IO % - Average Log Write % - Average Memory % • Wait Stats View PERFORMANCE SYSTEM VIEWS • Server scope (master) • Measures in 5 minute intervals • Retains 14 days of history • Captures when resource usage changes sys.resource_stats • Database scope • Measures in 15 second intervals • Retains 1 hour of history • Captures even with no activity sys.dm_db_resource_stats
  • 44. • Performance Overview • Performance Recommendations • Query Performance Insights • Automatic Tuning A ZURE PERFORMANCE TOOLS
  • 45.
  • 46.
  • 47.
  • 48.
  • 50. SELECT KNOWLEDGE FROM SQL SERVER Copyright © 2018 SQLschool.gr. All right reserved. PRESENTER MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION