SlideShare une entreprise Scribd logo
1  sur  42
Télécharger pour lire hors ligne
Welcome
Lima 2019
PASS
INTEL
MICROSOFT
Local – PASS
Modernizing SQL
Server the Right Way
Juan Rafael
MVP | Business Applications
Technical Consultant – Dynamics 365
FO+CE, @jlc_rve
Why upgrade?
Winter is coming…
Is it the right time to modernize?
Do I need to modernize to reduce costs?
To maintain compliance?
To keep vendor support?
For ISVs, to enable choice and features for my customers?
Can I separate application modernization cycles from data modernization cycles?
Database Compatibility
Certification
Stop certifying for any
given platform (Cloud,
on-prem)!
Stop certifying for a
named SQL Server
version!
Database Compatibility Level based
certification
Any certification process should be thought in terms of
“which target database compatibility level am I certifying to?”
Updated public documentation: http://aka.ms/dbcompat
Key Benefits
Simplified application certification on-premise and
Azure (e.g. Azure SQL DB MI).
Ability to provide customer a choice of latest SQL
Server platform based on certified DB compat level.
Improved risk management by decoupling application
upgrade cycles from Database upgrade cycles.
Microsoft stands by DB Compat
based certification
Microsoft Database Compatibility Level
Protection
Full Functional
protection once
assessment tools
runs clean with
no errors.
Query Plan shape
protection on
comparable
hardware.
Maintaining
backward
compatibility is
very important to
SQL Server team.
Database Compatibility
Level sets certain database
behaviors to be compatible
with the specified version
of SQL Server.
Database Compatibility Level behavior
Compatibility level affects
behaviors only for the
specified database, not for
the entire server.
Product
Compatibility
Level Designation
Supported
Compatibility Level
Values
SQL Server 2019 150 150, 140, 130, 120, 110,
100
SQL Server 2017 140 140, 130, 120, 110, 100
Azure SQL
Database
130 150, 140, 130, 120, 110,
100
SQL Server 2016 130 130, 120, 110, 100
SQL Server 2014 120 120, 110, 100
SQL Server 2012 110 110, 100, 90
SQL Server 2008
R2
100 100, 90, 80
SQL Server 2008 100 100, 90, 80
SQL Server 2005 90 90, 80
SQL Server 2000 80 80
Functional change protection
Clarifying the caveats
Deprecated = avoid use in new development
• Deprecated functionality introduced in a given SQL Server version is still protected by that
compatibility level.
Discontinued = removed from product
• Discontinued functionality introduced in a given SQL Server version is not protected by compatibility
level.
Example of removed T-SQL syntax.
• In SQL Server 2012 the fastfirstrow hint was removed.
• Regardless of the compatibility level, the query below will produce error 321 (not a recognized table
hints option):
SELECT * FROM HumanResources.Employee WITH (FASTFIRSTROW);
• Instead use:
SELECT * FROM HumanResources.Employee OPTION (FAST = <n>);
Functional change protection
Clarifying the caveats
Breaking Changes = behavior changes resulting in different outcome
Protected by Database Compatibility:
DECLARE @value datetime = '1900-01-01 00:00:00.003'
SELECT CAST(@value AS datetime2)
• In DB Compat 120 or lower, result is:
1900-01-01 00:00:00.0030000
• Under DB Compat 130, these show improved accuracy by accounting for the
fractional milliseconds, resulting in:
1900-01-01 00:00:00.0033333
Not Protected by Database Compatibility:
• The query below works until DB Compat 90, but errors out starting with
Database Compatibility 100 (error 241, conversion fail):
SELECT DATEPART (year, '2007/05-30’)
• Instead use:
SELECT DATEPART (year, '2007/05/30’) or SELECT DATEPART (year, '2007-05-30’)
Upgrade
Process
Minimize Risk with the Database
Migration Guide
Functional &
Performance
tests
Optimize
Migrate
schema,
objects & data
Remediate
applications
Discover Assess Convert
Data
Sync
Cutover
Review the Database
Migration Guide for
details
Reliable Upgrades
Discover
• Microsoft
Assessment and
Planning Toolkit
(MAP)
Assess
• Database
Migration
Assistant (DMA)
Test
• Database
Experimentation
Assistant (DEA)
Fully automated
using free tools
from Microsoft
“With tools like Database Migration
Assistant and Database
Experimentation Assistant, we were
able to reduce the time and effort
required for the upgrade, enable
automated A/B testing capability to
minimize risk and provide a high
confidence upgrade plan for a mission
critical, Tier-1 environment spanning
over a 1000 instances of SQL Server
within 3 months.”
Salesforce – PASS Summit 2017
Discover
Discover with MAP Toolkit
Which SQL Server versions do I have?
Which Editions am I running?
Which SQL Server components are installed?
How many cores are on each server?
How many databases are in each instance?
What are the sizes of all my databases?
What are the settings for each instance and database?
Assess &
Convert
Assess & Convert with DMA
Assess
Compatibility
Issues
• Breaking changes
• Behavior changes
• Deprecated features
Discover new
features
• Performance
• Storage
• Security
Perform
Migration
• Connect to source
and target servers
• Choose databases
• Monitor migration
• Review final report
Database
Migration Assistant
identify potential pitfalls
automated remediation
Data Migration
Assistant
Test &
Optimize
Test & Optimize with DEA
Database
Experimentation
Assistant
A/B testing
Compatibility
execution
errors
Degraded
queries
Workload
comparison
Hardware
comparison
Configuration
setting
comparison
Database Experimentation
Assistant
regressions breaking changes
performance characteristics
automation
different
configuration settings
Database
Migration
Assistant
Walkthrough
Now with ad-hoc
workload
assessments!
Database
Experimentation
Assistant
Walkthrough
Post-
Migration
I moved the data, am I done?
SQL Server post migration step is very crucial for reconciling
any data accuracy and completeness, as well as uncover
performance issues with the workload.
Recommended Upgrade Plan for latest DB Compatibility
Level:
Upgrade to
latest SQL
Server and
keep source
DB Compat
level
Enable
Query Store
Wait to
collect data
on the
workload
(create a
baseline)
Set DB
Compat
Level to
latest
Quickly fix
regressions
by forcing
last known
good plan
Upgrading DB Compat until recently
SQL 2016+
Query Store Regressed Queries
SQL 2017+
Automatic Plan Correction
Query Tuning Assistant (QTA)
1st Priority: to guide users through the documented and
recommended DB Compatibility upgrade procedure with
ease.
What if instead of choosing between current and last know
good plan, we find a 3rd, better plan?
Upgrade to
latest SQL
Server and
keep source
DB Compat
level
Enable
Query Store
Wait to
collect data
on the
workload
(create a
baseline)
Set DB
Compat
Level to
latest
Quickly fix
regressions
by forcing
last known
good plan
Find a
better plan
through
tuning
Query Tuning Assistant (QTA) Workflow
Available in SSMS v18 and Powershell (preview)
Query Store
Regressed Queries
Analysis and
Recommendations
• Correlation vs Independence
ASSUME_MIN_SELECTIVITY_FOR_FILTER_ESTIMATES
• Simple vs Base Join Containment
ASSUME_JOIN_PREDICATE_DEPENDS_ON_FILTERS
• TVF fixed estimation of 100 rows vs 1 row
‘QUERYTRACEON 9488’
• As a last resort, full-fledge use of CE70 is also
considered, when all else doesn’t yield desired results.
Deployment
via Plan
Guide
Modernization Tools Breakdown
DMA
Readiness assessment: blocking
issues breaking changes, behavior
changes
Moves schema, data and
uncontained objects (like logins) To
Azure SQL Database
Backup / Restore to another SQL
Server (Keeps source DB
Compatibility Level)
New feature recommendation
DEA
A/B Testing
Capture and Replay workload for
performance testing and reporting
Also reports on migration blockers
because of failed T-SQL syntax
QTA
Upgrade Database Compatibility
Model to desired state
Detects workload regressions, and
tests CE model variations (subsets)
Provides tangible recommendations
for tuning queries without reverting
DB compat
Session takeaways
• Start planning for End of Service for SQL Server 2008/R2
and Windows Server 2008/R2 today!
• Review the database migration guide
• Familiarize yourself with the DMA, DEA, Query Store and
Query Tuning Assistant
• Leverage Database Compatibility to accelerate
modernization
Session resources
http://aka.ms/sqleosfaq - End-of-Support FAQ
Upgrade SQL Server
Database Migration Guide
Microsoft Assessment and Planning Toolkit
Overview of Data Migration Assistant
DEA 2.1 General Availability: Release Overview – Database
Experimentation Assistant
Post-migration Validation and Optimization Guide
http://aka.ms/dbcompat (DB Compatibility Level based
upgrades)
Questions?
Thank You

Contenu connexe

Tendances

Business intelligence in microsoft dynamics ax
Business intelligence in microsoft dynamics axBusiness intelligence in microsoft dynamics ax
Business intelligence in microsoft dynamics ax
AlfaPeople US
 
Salesforce For Brady
Salesforce For BradySalesforce For Brady
Salesforce For Brady
luke_leonhard
 

Tendances (20)

Dynamics Day 2015: Dynamics NAV Roadmap
Dynamics Day 2015: Dynamics NAV RoadmapDynamics Day 2015: Dynamics NAV Roadmap
Dynamics Day 2015: Dynamics NAV Roadmap
 
Dynamics Day 2015: Dynamics AX and Enterprise Cloud Computing
Dynamics Day 2015: Dynamics AX and Enterprise Cloud ComputingDynamics Day 2015: Dynamics AX and Enterprise Cloud Computing
Dynamics Day 2015: Dynamics AX and Enterprise Cloud Computing
 
How to Manage Data Integration within Microsoft Dynamics
How to Manage Data Integration within Microsoft DynamicsHow to Manage Data Integration within Microsoft Dynamics
How to Manage Data Integration within Microsoft Dynamics
 
Microsoft dynamics ax - a new generation in ERP
Microsoft dynamics ax - a new generation in ERPMicrosoft dynamics ax - a new generation in ERP
Microsoft dynamics ax - a new generation in ERP
 
Informatica cloud Powercenter designer
Informatica cloud Powercenter designerInformatica cloud Powercenter designer
Informatica cloud Powercenter designer
 
Dynamics 365 for Finance and Operations - Power BI
Dynamics 365 for Finance and Operations - Power BIDynamics 365 for Finance and Operations - Power BI
Dynamics 365 for Finance and Operations - Power BI
 
Momento de Power, Power Platform
Momento de Power, Power PlatformMomento de Power, Power Platform
Momento de Power, Power Platform
 
Whats new and exciting jan 22
Whats new and exciting jan 22Whats new and exciting jan 22
Whats new and exciting jan 22
 
Intelligent automation with Microsoft Power Automate
Intelligent automation with Microsoft Power AutomateIntelligent automation with Microsoft Power Automate
Intelligent automation with Microsoft Power Automate
 
Dynamics Day 2012: Dynamics AX Update and Roadmap
Dynamics Day 2012: Dynamics AX Update and RoadmapDynamics Day 2012: Dynamics AX Update and Roadmap
Dynamics Day 2012: Dynamics AX Update and Roadmap
 
Microsoft Flow and Dynamics 365 - Jukka Niiranen at CRM Saturday Oslo, 2017-0...
Microsoft Flow and Dynamics 365 - Jukka Niiranen at CRM Saturday Oslo, 2017-0...Microsoft Flow and Dynamics 365 - Jukka Niiranen at CRM Saturday Oslo, 2017-0...
Microsoft Flow and Dynamics 365 - Jukka Niiranen at CRM Saturday Oslo, 2017-0...
 
Salesforce Analytics Cloud - Explained
Salesforce Analytics Cloud - ExplainedSalesforce Analytics Cloud - Explained
Salesforce Analytics Cloud - Explained
 
Learn How to Use Microsoft Power BI for Office 365 to Analyze Salesforce Data
Learn How to Use Microsoft Power BI for Office 365 to Analyze Salesforce DataLearn How to Use Microsoft Power BI for Office 365 to Analyze Salesforce Data
Learn How to Use Microsoft Power BI for Office 365 to Analyze Salesforce Data
 
Business intelligence in microsoft dynamics ax
Business intelligence in microsoft dynamics axBusiness intelligence in microsoft dynamics ax
Business intelligence in microsoft dynamics ax
 
Dynamics day 2015 Keynote
Dynamics day 2015 KeynoteDynamics day 2015 Keynote
Dynamics day 2015 Keynote
 
Salesforce For Brady
Salesforce For BradySalesforce For Brady
Salesforce For Brady
 
Dynamics Day 2013 AX 2012 Product Update and Roadmap
Dynamics Day 2013 AX 2012 Product Update and RoadmapDynamics Day 2013 AX 2012 Product Update and Roadmap
Dynamics Day 2013 AX 2012 Product Update and Roadmap
 
Dynamics Day 2014: Microsoft Dynamics AX - Roadmap
Dynamics Day 2014: Microsoft Dynamics AX - RoadmapDynamics Day 2014: Microsoft Dynamics AX - Roadmap
Dynamics Day 2014: Microsoft Dynamics AX - Roadmap
 
Microsoft Dynamics
Microsoft DynamicsMicrosoft Dynamics
Microsoft Dynamics
 
Modern business intelligence
Modern business intelligenceModern business intelligence
Modern business intelligence
 

Similaire à Modernizing SQL Server the Right Way

Microsoft SQL Server - SQL Server Migrations Presentation
Microsoft SQL Server - SQL Server Migrations PresentationMicrosoft SQL Server - SQL Server Migrations Presentation
Microsoft SQL Server - SQL Server Migrations Presentation
Microsoft Private Cloud
 
Cooper Oracle 11g Overview
Cooper Oracle 11g OverviewCooper Oracle 11g Overview
Cooper Oracle 11g Overview
moin_azeem
 
Sql server 2008 r2 performance and scale
Sql server 2008 r2 performance and scaleSql server 2008 r2 performance and scale
Sql server 2008 r2 performance and scale
Klaudiia Jacome
 
Hp Polyserve Database Utility For Sql Server Consolidation
Hp Polyserve Database Utility For Sql Server ConsolidationHp Polyserve Database Utility For Sql Server Consolidation
Hp Polyserve Database Utility For Sql Server Consolidation
CB UTBlog
 
Be05 introduction to sql azure
Be05   introduction to sql azureBe05   introduction to sql azure
Be05 introduction to sql azure
DotNetCampus
 

Similaire à Modernizing SQL Server the Right Way (20)

SQL Server End Of Support
SQL Server End Of SupportSQL Server End Of Support
SQL Server End Of Support
 
Modernizing sql server the right way
Modernizing sql server the right wayModernizing sql server the right way
Modernizing sql server the right way
 
Microsoft SQL Server - SQL Server Migrations Presentation
Microsoft SQL Server - SQL Server Migrations PresentationMicrosoft SQL Server - SQL Server Migrations Presentation
Microsoft SQL Server - SQL Server Migrations Presentation
 
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
 
Migrate SQL Workloads to Azure
Migrate SQL Workloads to AzureMigrate SQL Workloads to Azure
Migrate SQL Workloads to Azure
 
Cooper Oracle 11g Overview
Cooper Oracle 11g OverviewCooper Oracle 11g Overview
Cooper Oracle 11g Overview
 
SQL Server and System Center Advisor
SQL Server and System Center AdvisorSQL Server and System Center Advisor
SQL Server and System Center Advisor
 
Novidades do SQL Server 2016
Novidades do SQL Server 2016Novidades do SQL Server 2016
Novidades do SQL Server 2016
 
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
 
SQL Server Modernization
SQL Server ModernizationSQL Server Modernization
SQL Server Modernization
 
Brk2045 upgrade sql server 2017 (on prem, iaa-s and paas)
Brk2045 upgrade sql server 2017 (on prem, iaa-s and paas)Brk2045 upgrade sql server 2017 (on prem, iaa-s and paas)
Brk2045 upgrade sql server 2017 (on prem, iaa-s and paas)
 
Increased IT infrastructure effectiveness by 80% with Microsoft system center...
Increased IT infrastructure effectiveness by 80% with Microsoft system center...Increased IT infrastructure effectiveness by 80% with Microsoft system center...
Increased IT infrastructure effectiveness by 80% with Microsoft system center...
 
Sql server 2008 r2 performance and scale
Sql server 2008 r2 performance and scaleSql server 2008 r2 performance and scale
Sql server 2008 r2 performance and scale
 
Hp Polyserve Database Utility For Sql Server Consolidation
Hp Polyserve Database Utility For Sql Server ConsolidationHp Polyserve Database Utility For Sql Server Consolidation
Hp Polyserve Database Utility For Sql Server Consolidation
 
Datavail Accelerates AWS Adoption for Sony DADC New Media Solutions PPT
 Datavail Accelerates AWS Adoption for Sony DADC New Media Solutions PPT Datavail Accelerates AWS Adoption for Sony DADC New Media Solutions PPT
Datavail Accelerates AWS Adoption for Sony DADC New Media Solutions PPT
 
Saying goodbye to SQL Server 2000
Saying goodbye to SQL Server 2000Saying goodbye to SQL Server 2000
Saying goodbye to SQL Server 2000
 
Reference for data migration pls choose and
Reference for data migration pls choose andReference for data migration pls choose and
Reference for data migration pls choose and
 
Optimizing Callidus TrueComp Suite: Tips and Tricks
Optimizing Callidus TrueComp Suite: Tips and TricksOptimizing Callidus TrueComp Suite: Tips and Tricks
Optimizing Callidus TrueComp Suite: Tips and Tricks
 
Auditing Data Access in SQL Server
Auditing Data Access in SQL ServerAuditing Data Access in SQL Server
Auditing Data Access in SQL Server
 
Be05 introduction to sql azure
Be05   introduction to sql azureBe05   introduction to sql azure
Be05 introduction to sql azure
 

Plus de Juan Fabian

Plus de Juan Fabian (20)

Accelerate development with Visual Studio and Power Platform.pdf
Accelerate development with Visual Studio and Power Platform.pdfAccelerate development with Visual Studio and Power Platform.pdf
Accelerate development with Visual Studio and Power Platform.pdf
 
Database optimization in Dynamics 365 Finance and Operations
Database optimization in Dynamics 365 Finance and OperationsDatabase optimization in Dynamics 365 Finance and Operations
Database optimization in Dynamics 365 Finance and Operations
 
Microsoft Dynamics 365 IA - Copilot/ Fabric
Microsoft Dynamics 365 IA - Copilot/ FabricMicrosoft Dynamics 365 IA - Copilot/ Fabric
Microsoft Dynamics 365 IA - Copilot/ Fabric
 
Azure Container Apps
Azure Container Apps Azure Container Apps
Azure Container Apps
 
DevOps Dynamics 365 FnO
DevOps Dynamics 365 FnODevOps Dynamics 365 FnO
DevOps Dynamics 365 FnO
 
Synapse link for dataverse
Synapse link for dataverseSynapse link for dataverse
Synapse link for dataverse
 
Power BI con Dynamics 365 FnO
Power BI con Dynamics 365 FnOPower BI con Dynamics 365 FnO
Power BI con Dynamics 365 FnO
 
SharePoint y Dynamics 365 FnO - Mejor juntos
SharePoint y Dynamics 365 FnO - Mejor juntosSharePoint y Dynamics 365 FnO - Mejor juntos
SharePoint y Dynamics 365 FnO - Mejor juntos
 
Biz Apps 2022 Release Wave 2 Launch
Biz Apps 2022 Release Wave 2 LaunchBiz Apps 2022 Release Wave 2 Launch
Biz Apps 2022 Release Wave 2 Launch
 
Export to Data Lake Dynamics365 FnO
Export to Data Lake Dynamics365 FnOExport to Data Lake Dynamics365 FnO
Export to Data Lake Dynamics365 FnO
 
SharePoint y Dynamics 365 FnO - Mejor juntos
SharePoint y Dynamics 365 FnO - Mejor juntosSharePoint y Dynamics 365 FnO - Mejor juntos
SharePoint y Dynamics 365 FnO - Mejor juntos
 
Export Data Lake Dynamics 365 F&O
Export Data Lake Dynamics 365 F&OExport Data Lake Dynamics 365 F&O
Export Data Lake Dynamics 365 F&O
 
Gestion de Inventario en Business Central
Gestion de Inventario en Business CentralGestion de Inventario en Business Central
Gestion de Inventario en Business Central
 
Introduccion a MS Dynamics 365
Introduccion a MS Dynamics 365Introduccion a MS Dynamics 365
Introduccion a MS Dynamics 365
 
Migrar datos de ERP MS Dynamics 365 a Azure SQL
Migrar datos de ERP MS Dynamics 365 a Azure SQLMigrar datos de ERP MS Dynamics 365 a Azure SQL
Migrar datos de ERP MS Dynamics 365 a Azure SQL
 
BYOD – SQL Azure y Dynamics 365 F&O
BYOD – SQL Azure y Dynamics 365 F&OBYOD – SQL Azure y Dynamics 365 F&O
BYOD – SQL Azure y Dynamics 365 F&O
 
Integración de Dynamics 365 Commerce y Teams
Integración de Dynamics 365 Commerce y TeamsIntegración de Dynamics 365 Commerce y Teams
Integración de Dynamics 365 Commerce y Teams
 
MS Teams y Virtual Agents para soporte
MS Teams y Virtual Agents para soporteMS Teams y Virtual Agents para soporte
MS Teams y Virtual Agents para soporte
 
Microsoft Dynamics 365 Commerce and Teams - Part I
Microsoft Dynamics 365 Commerce and Teams - Part IMicrosoft Dynamics 365 Commerce and Teams - Part I
Microsoft Dynamics 365 Commerce and Teams - Part I
 
Aplicaciones SaaS con Microsoft Cloud y Dynamics 365
Aplicaciones SaaS con Microsoft Cloud y Dynamics 365Aplicaciones SaaS con Microsoft Cloud y Dynamics 365
Aplicaciones SaaS con Microsoft Cloud y Dynamics 365
 

Dernier

+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
masabamasaba
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
masabamasaba
 

Dernier (20)

%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
 
tonesoftg
tonesoftgtonesoftg
tonesoftg
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
 
What Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationWhat Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the Situation
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
 
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
 

Modernizing SQL Server the Right Way

  • 1.
  • 3. Modernizing SQL Server the Right Way Juan Rafael MVP | Business Applications Technical Consultant – Dynamics 365 FO+CE, @jlc_rve
  • 6. Is it the right time to modernize? Do I need to modernize to reduce costs? To maintain compliance? To keep vendor support? For ISVs, to enable choice and features for my customers? Can I separate application modernization cycles from data modernization cycles?
  • 8. Stop certifying for any given platform (Cloud, on-prem)! Stop certifying for a named SQL Server version! Database Compatibility Level based certification Any certification process should be thought in terms of “which target database compatibility level am I certifying to?” Updated public documentation: http://aka.ms/dbcompat
  • 9. Key Benefits Simplified application certification on-premise and Azure (e.g. Azure SQL DB MI). Ability to provide customer a choice of latest SQL Server platform based on certified DB compat level. Improved risk management by decoupling application upgrade cycles from Database upgrade cycles.
  • 10. Microsoft stands by DB Compat based certification Microsoft Database Compatibility Level Protection Full Functional protection once assessment tools runs clean with no errors. Query Plan shape protection on comparable hardware. Maintaining backward compatibility is very important to SQL Server team.
  • 11. Database Compatibility Level sets certain database behaviors to be compatible with the specified version of SQL Server. Database Compatibility Level behavior Compatibility level affects behaviors only for the specified database, not for the entire server. Product Compatibility Level Designation Supported Compatibility Level Values SQL Server 2019 150 150, 140, 130, 120, 110, 100 SQL Server 2017 140 140, 130, 120, 110, 100 Azure SQL Database 130 150, 140, 130, 120, 110, 100 SQL Server 2016 130 130, 120, 110, 100 SQL Server 2014 120 120, 110, 100 SQL Server 2012 110 110, 100, 90 SQL Server 2008 R2 100 100, 90, 80 SQL Server 2008 100 100, 90, 80 SQL Server 2005 90 90, 80 SQL Server 2000 80 80
  • 12. Functional change protection Clarifying the caveats Deprecated = avoid use in new development • Deprecated functionality introduced in a given SQL Server version is still protected by that compatibility level. Discontinued = removed from product • Discontinued functionality introduced in a given SQL Server version is not protected by compatibility level. Example of removed T-SQL syntax. • In SQL Server 2012 the fastfirstrow hint was removed. • Regardless of the compatibility level, the query below will produce error 321 (not a recognized table hints option): SELECT * FROM HumanResources.Employee WITH (FASTFIRSTROW); • Instead use: SELECT * FROM HumanResources.Employee OPTION (FAST = <n>);
  • 13. Functional change protection Clarifying the caveats Breaking Changes = behavior changes resulting in different outcome Protected by Database Compatibility: DECLARE @value datetime = '1900-01-01 00:00:00.003' SELECT CAST(@value AS datetime2) • In DB Compat 120 or lower, result is: 1900-01-01 00:00:00.0030000 • Under DB Compat 130, these show improved accuracy by accounting for the fractional milliseconds, resulting in: 1900-01-01 00:00:00.0033333 Not Protected by Database Compatibility: • The query below works until DB Compat 90, but errors out starting with Database Compatibility 100 (error 241, conversion fail): SELECT DATEPART (year, '2007/05-30’) • Instead use: SELECT DATEPART (year, '2007/05/30’) or SELECT DATEPART (year, '2007-05-30’)
  • 15. Minimize Risk with the Database Migration Guide Functional & Performance tests Optimize Migrate schema, objects & data Remediate applications Discover Assess Convert Data Sync Cutover
  • 16. Review the Database Migration Guide for details Reliable Upgrades Discover • Microsoft Assessment and Planning Toolkit (MAP) Assess • Database Migration Assistant (DMA) Test • Database Experimentation Assistant (DEA) Fully automated using free tools from Microsoft “With tools like Database Migration Assistant and Database Experimentation Assistant, we were able to reduce the time and effort required for the upgrade, enable automated A/B testing capability to minimize risk and provide a high confidence upgrade plan for a mission critical, Tier-1 environment spanning over a 1000 instances of SQL Server within 3 months.” Salesforce – PASS Summit 2017
  • 18. Discover with MAP Toolkit Which SQL Server versions do I have? Which Editions am I running? Which SQL Server components are installed? How many cores are on each server? How many databases are in each instance? What are the sizes of all my databases? What are the settings for each instance and database?
  • 20. Assess & Convert with DMA Assess Compatibility Issues • Breaking changes • Behavior changes • Deprecated features Discover new features • Performance • Storage • Security Perform Migration • Connect to source and target servers • Choose databases • Monitor migration • Review final report Database Migration Assistant identify potential pitfalls automated remediation Data Migration Assistant
  • 22. Test & Optimize with DEA Database Experimentation Assistant A/B testing Compatibility execution errors Degraded queries Workload comparison Hardware comparison Configuration setting comparison Database Experimentation Assistant regressions breaking changes performance characteristics automation different configuration settings
  • 24.
  • 25.
  • 26.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 34. I moved the data, am I done? SQL Server post migration step is very crucial for reconciling any data accuracy and completeness, as well as uncover performance issues with the workload. Recommended Upgrade Plan for latest DB Compatibility Level: Upgrade to latest SQL Server and keep source DB Compat level Enable Query Store Wait to collect data on the workload (create a baseline) Set DB Compat Level to latest Quickly fix regressions by forcing last known good plan
  • 35. Upgrading DB Compat until recently SQL 2016+ Query Store Regressed Queries SQL 2017+ Automatic Plan Correction
  • 36. Query Tuning Assistant (QTA) 1st Priority: to guide users through the documented and recommended DB Compatibility upgrade procedure with ease. What if instead of choosing between current and last know good plan, we find a 3rd, better plan? Upgrade to latest SQL Server and keep source DB Compat level Enable Query Store Wait to collect data on the workload (create a baseline) Set DB Compat Level to latest Quickly fix regressions by forcing last known good plan Find a better plan through tuning
  • 37. Query Tuning Assistant (QTA) Workflow Available in SSMS v18 and Powershell (preview) Query Store Regressed Queries Analysis and Recommendations • Correlation vs Independence ASSUME_MIN_SELECTIVITY_FOR_FILTER_ESTIMATES • Simple vs Base Join Containment ASSUME_JOIN_PREDICATE_DEPENDS_ON_FILTERS • TVF fixed estimation of 100 rows vs 1 row ‘QUERYTRACEON 9488’ • As a last resort, full-fledge use of CE70 is also considered, when all else doesn’t yield desired results. Deployment via Plan Guide
  • 38. Modernization Tools Breakdown DMA Readiness assessment: blocking issues breaking changes, behavior changes Moves schema, data and uncontained objects (like logins) To Azure SQL Database Backup / Restore to another SQL Server (Keeps source DB Compatibility Level) New feature recommendation DEA A/B Testing Capture and Replay workload for performance testing and reporting Also reports on migration blockers because of failed T-SQL syntax QTA Upgrade Database Compatibility Model to desired state Detects workload regressions, and tests CE model variations (subsets) Provides tangible recommendations for tuning queries without reverting DB compat
  • 39. Session takeaways • Start planning for End of Service for SQL Server 2008/R2 and Windows Server 2008/R2 today! • Review the database migration guide • Familiarize yourself with the DMA, DEA, Query Store and Query Tuning Assistant • Leverage Database Compatibility to accelerate modernization
  • 40. Session resources http://aka.ms/sqleosfaq - End-of-Support FAQ Upgrade SQL Server Database Migration Guide Microsoft Assessment and Planning Toolkit Overview of Data Migration Assistant DEA 2.1 General Availability: Release Overview – Database Experimentation Assistant Post-migration Validation and Optimization Guide http://aka.ms/dbcompat (DB Compatibility Level based upgrades)