SlideShare a Scribd company logo
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

More Related Content

What's hot

Dynamics Day 2015: Dynamics NAV Roadmap
Dynamics Day 2015: Dynamics NAV RoadmapDynamics Day 2015: Dynamics NAV Roadmap
Dynamics Day 2015: Dynamics NAV Roadmap
Intergen
 
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
Intergen
 
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
GlobalLogic Ukraine
 
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
Retail ERP Solution
 
Informatica cloud Powercenter designer
Informatica cloud Powercenter designerInformatica cloud Powercenter designer
Informatica cloud Powercenter designer
Rameswara Reddy
 
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
Juan Fabian
 
Momento de Power, Power Platform
Momento de Power, Power PlatformMomento de Power, Power Platform
Momento de Power, Power Platform
Juan Fabian
 
Whats new and exciting jan 22
Whats new and exciting jan 22Whats new and exciting jan 22
Whats new and exciting jan 22
Berkovich Consulting
 
Intelligent automation with Microsoft Power Automate
Intelligent automation with Microsoft Power AutomateIntelligent automation with Microsoft Power Automate
Intelligent automation with Microsoft Power Automate
Daniel Laskewitz
 
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
Intergen
 
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...
Jukka Niiranen
 
Salesforce Analytics Cloud - Explained
Salesforce Analytics Cloud - ExplainedSalesforce Analytics Cloud - Explained
Salesforce Analytics Cloud - Explained
Carl Brundage
 
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
Netwoven Inc.
 
Business intelligence in microsoft dynamics ax
Business intelligence in microsoft dynamics axBusiness intelligence in microsoft dynamics ax
Business intelligence in microsoft dynamics axAlfaPeople US
 
Dynamics day 2015 Keynote
Dynamics day 2015 KeynoteDynamics day 2015 Keynote
Dynamics day 2015 Keynote
Intergen
 
Salesforce For Brady
Salesforce For BradySalesforce For Brady
Salesforce For Bradyluke_leonhard
 
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
Intergen
 
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
Intergen
 
Microsoft Dynamics
Microsoft DynamicsMicrosoft Dynamics
Microsoft Dynamics
cglylesu
 
Modern business intelligence
Modern business intelligenceModern business intelligence
Modern business intelligence
Michael Stephenson
 

What's hot (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
 

Similar to Modernizing SQL Server the Right Way

SQL Server End Of Support
SQL Server End Of SupportSQL Server End Of Support
SQL Server End Of Support
Mariano Kovo
 
Modernizing sql server the right way
Modernizing sql server the right wayModernizing sql server the right way
Modernizing sql server the right way
Mariano Kovo
 
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 PresentationMicrosoft Private Cloud
 
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
George Walters
 
Migrate SQL Workloads to Azure
Migrate SQL Workloads to AzureMigrate SQL Workloads to Azure
Migrate SQL Workloads to Azure
Antonios Chatzipavlis
 
Cooper Oracle 11g Overview
Cooper Oracle 11g OverviewCooper Oracle 11g Overview
Cooper Oracle 11g Overviewmoin_azeem
 
SQL Server and System Center Advisor
SQL Server and System Center AdvisorSQL Server and System Center Advisor
SQL Server and System Center Advisor
Eduardo Castro
 
Novidades do SQL Server 2016
Novidades do SQL Server 2016Novidades do SQL Server 2016
Novidades do SQL Server 2016
Marcos Freccia
 
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
Javier Villegas
 
SQL Server Modernization
SQL Server ModernizationSQL Server Modernization
SQL Server Modernization
Gianluca Hotz
 
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)
Bob Ward
 
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...
Aspire Systems
 
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 scaleKlaudiia 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 ConsolidationCB UTBlog
 
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
Amazon Web Services
 
Saying goodbye to SQL Server 2000
Saying goodbye to SQL Server 2000Saying goodbye to SQL Server 2000
Saying goodbye to SQL Server 2000
ukdpe
 
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
iswarianagarajan
 
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
Callidus Software
 
Auditing Data Access in SQL Server
Auditing Data Access in SQL ServerAuditing Data Access in SQL Server
Auditing Data Access in SQL Server
Antonios Chatzipavlis
 
Be05 introduction to sql azure
Be05   introduction to sql azureBe05   introduction to sql azure
Be05 introduction to sql azureDotNetCampus
 

Similar to 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
 

More from Juan Fabian

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
Juan Fabian
 
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
Juan Fabian
 
Microsoft Dynamics 365 IA - Copilot/ Fabric
Microsoft Dynamics 365 IA - Copilot/ FabricMicrosoft Dynamics 365 IA - Copilot/ Fabric
Microsoft Dynamics 365 IA - Copilot/ Fabric
Juan Fabian
 
Azure Container Apps
Azure Container Apps Azure Container Apps
Azure Container Apps
Juan Fabian
 
DevOps Dynamics 365 FnO
DevOps Dynamics 365 FnODevOps Dynamics 365 FnO
DevOps Dynamics 365 FnO
Juan Fabian
 
Synapse link for dataverse
Synapse link for dataverseSynapse link for dataverse
Synapse link for dataverse
Juan Fabian
 
Power BI con Dynamics 365 FnO
Power BI con Dynamics 365 FnOPower BI con Dynamics 365 FnO
Power BI con Dynamics 365 FnO
Juan Fabian
 
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
Juan Fabian
 
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
Juan Fabian
 
Export to Data Lake Dynamics365 FnO
Export to Data Lake Dynamics365 FnOExport to Data Lake Dynamics365 FnO
Export to Data Lake Dynamics365 FnO
Juan Fabian
 
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
Juan Fabian
 
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
Juan Fabian
 
Gestion de Inventario en Business Central
Gestion de Inventario en Business CentralGestion de Inventario en Business Central
Gestion de Inventario en Business Central
Juan Fabian
 
Introduccion a MS Dynamics 365
Introduccion a MS Dynamics 365Introduccion a MS Dynamics 365
Introduccion a MS Dynamics 365
Juan Fabian
 
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
Juan Fabian
 
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
Juan Fabian
 
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
Juan Fabian
 
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
Juan Fabian
 
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
Juan Fabian
 
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
Juan Fabian
 

More from 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
 

Recently uploaded

openEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain SecurityopenEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain Security
Shane Coughlan
 
APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)
Boni García
 
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket ManagementUtilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate
 
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdfAutomated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
timtebeek1
 
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Mind IT Systems
 
Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"
Donna Lenk
 
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissancesAtelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Neo4j
 
Transform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR SolutionsTransform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR Solutions
TheSMSPoint
 
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
Łukasz Chruściel
 
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxTop Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
rickgrimesss22
 
E-commerce Application Development Company.pdf
E-commerce Application Development Company.pdfE-commerce Application Development Company.pdf
E-commerce Application Development Company.pdf
Hornet Dynamics
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata
 
AI Genie Review: World’s First Open AI WordPress Website Creator
AI Genie Review: World’s First Open AI WordPress Website CreatorAI Genie Review: World’s First Open AI WordPress Website Creator
AI Genie Review: World’s First Open AI WordPress Website Creator
Google
 
Fundamentals of Programming and Language Processors
Fundamentals of Programming and Language ProcessorsFundamentals of Programming and Language Processors
Fundamentals of Programming and Language Processors
Rakesh Kumar R
 
GraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph TechnologyGraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph Technology
Neo4j
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
Max Andersen
 
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke
 
Mobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona InfotechMobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona Infotech
Drona Infotech
 
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of CodeA Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
Aftab Hussain
 
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Crescat
 

Recently uploaded (20)

openEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain SecurityopenEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain Security
 
APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)
 
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket ManagementUtilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
 
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdfAutomated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
 
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
 
Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"
 
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissancesAtelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissances
 
Transform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR SolutionsTransform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR Solutions
 
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
 
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxTop Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
 
E-commerce Application Development Company.pdf
E-commerce Application Development Company.pdfE-commerce Application Development Company.pdf
E-commerce Application Development Company.pdf
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
 
AI Genie Review: World’s First Open AI WordPress Website Creator
AI Genie Review: World’s First Open AI WordPress Website CreatorAI Genie Review: World’s First Open AI WordPress Website Creator
AI Genie Review: World’s First Open AI WordPress Website Creator
 
Fundamentals of Programming and Language Processors
Fundamentals of Programming and Language ProcessorsFundamentals of Programming and Language Processors
Fundamentals of Programming and Language Processors
 
GraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph TechnologyGraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph Technology
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
 
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
 
Mobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona InfotechMobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona Infotech
 
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of CodeA Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
 
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
 

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)