Hidden Gems of SQL Server
2019
Odessa .Net User Group
Denis Reznik
Data Architect at Intapp, Inc.
Microsoft Data Platform MVP
About Me
• Denis Reznik
• Kyiv, Ukraine
• Data Architect at Intapp, Inc.
• Microsoft Data Platform MVP
• Co-Founder of Ukrainian Data Community Kyiv (PASS Chapter)
• PASS Regional Mentor, Central and Eastern Europe
• Co-author of “SQL Server MVP Deep Dives vol. 2”
SQL Server 2019
• Killer Features
• Big Data Clusters
• Secure Enclaves
• Intelligent QP
• Java Support
• String Truncation Error
Message (the most known
“hidden” feature)
• Hidden Features
• Lightweight Query Profiling
• DBCC PAGE
• dm_os_host_info
• dm_os_schedulers
• QUERY OPTIMIZER
COMPATIBILITY LEVEL
Lightweight Profiling
Session Level
Lightweight Profiling
• SQL Server 2014 – sys.dm_exec_query_profiles
• SQL Server 2016/2014 SP1 – Live Query Statistics
• Enable LQS in SSMS
• SET STATISTICS XML ON
• SET STATISTICS PROFILE ON
• query_post_execution_showplan event
• SQL Server 2016/2014 SP2 - query_thread_profile event
• SQL Server 2016 SP1 – query_thread_profile/TF 7412
• Lightweight query execution profiling
• https://blogs.msdn.microsoft.com/sql_server_team/query-progress-anytime-anywhere/
Server Level
DEMO
Lightweight Profiling
DEMO
DBCC PAGE
Global Allocation MAP (GAM)
GAM
Extent 1
Query 1
Query 2
LATCH
Wait
Extent 2
GAM 2 GAM 3
… …4GB 4GB
DEMO
dm_os_host_info
dm_os_schedulers
Query Execution
Thread Pool
Running
Suspended
Runnable
Scheduler
Logical CPU
Worker (Thread)
Connection
DEMO
dm_os_schedulers
QUERY OPTIMIZER COMPATIBILITY LEVEL
Statistics
500
1000
10
1200
800
1 800 2000 2800 4500 5400
SELECT * FROM Users
WHERE Id BETWEEN 2100 AND 2500
SELECT * FROM Users
WHERE Id BETWEEN 200 AND 5000
500
1000
10
1200
800
1 800 2000 2800 4500 5400
Statistics
SELECT * FROM Users u
INNER JOIN Posts p
ON u.Id = p.OwnerUserId
WHERE u.DisplayName LIKE 'Jeff%'
10600
20000 10
1200 800
A G L S T ZZZZ
Users
Posts
DEMO
QUERY OPTIMIZER COMPATIBILITY LEVEL
SUMMARY
• Truncation Error Message (the most known “hidden” feature)
• Lightweight Query Profiling
• DBCC PAGE
• dm_os_host_info
• dm_os_schedulers
• QUERY OPTIMIZER COMPATIBILITY LEVEL
• More hidden features are coming..
Thank You!
Denis Reznik
Twitter: @denisreznik
Email: denisreznik@gmail.com
Blog: http://reznik.uneta.com.ua
Facebook: https://www.facebook.com/denis.reznik.5
LinkedIn: http://ua.linkedin.com/pub/denis-reznik/3/502/234

More Related Content

PDF
Sql server 2019 new features
PPTX
The Roadmap for SQL Server 2019
PDF
Organizational compliance and security SQL 2012-2019 by George Walters
PPTX
Discovery Day 2019 Sofia - What is new in SQL Server 2019
PPTX
Discovery Day 2019 Sofia - Big data clusters
PPTX
Bi and AI updates in the Microsoft Data Platform stack
PDF
Customer migration to Azure SQL database, December 2019
PPTX
Upgrade your SQL Server like a Ninja
Sql server 2019 new features
The Roadmap for SQL Server 2019
Organizational compliance and security SQL 2012-2019 by George Walters
Discovery Day 2019 Sofia - What is new in SQL Server 2019
Discovery Day 2019 Sofia - Big data clusters
Bi and AI updates in the Microsoft Data Platform stack
Customer migration to Azure SQL database, December 2019
Upgrade your SQL Server like a Ninja

What's hot (20)

PDF
SQL Server 2019 Big Data Cluster
PDF
SQL Server 2017 Machine Learning Services
PPTX
SQL Server 2017 Deep Dive - @Ignite 2017
PDF
Introducing Microsoft SQL Server 2017
PPTX
Modernizando plataforma de bi
PDF
Exploring sql server 2016
PPTX
What's new in SQL Server 2017
PPTX
Azure data bricks by Eugene Polonichko
PPTX
How SQL Server 2016 SP1 Changes the Game
PPTX
Modern ETL: Azure Data Factory, Data Lake, and SQL Database
PDF
Azure - Data Platform
PDF
J1 T1 3 - Azure Data Lake store & analytics 101 - Kenneth M. Nielsen
PDF
What's new in SQL Server 2017
PDF
Introduction to azure document db
PPTX
Analyzing StackExchange data with Azure Data Lake
PDF
CCI2017 - Considerations for Migrating Databases to Azure - Gianluca Sartori
PDF
Azure SQL Data Warehouse
PPTX
Sql server hybrid what every sql professional should know
PDF
Cortana Analytics Workshop: Azure Data Lake
PDF
Delivering Insights from 20M+ Smart Homes with 500M+ Devices
SQL Server 2019 Big Data Cluster
SQL Server 2017 Machine Learning Services
SQL Server 2017 Deep Dive - @Ignite 2017
Introducing Microsoft SQL Server 2017
Modernizando plataforma de bi
Exploring sql server 2016
What's new in SQL Server 2017
Azure data bricks by Eugene Polonichko
How SQL Server 2016 SP1 Changes the Game
Modern ETL: Azure Data Factory, Data Lake, and SQL Database
Azure - Data Platform
J1 T1 3 - Azure Data Lake store & analytics 101 - Kenneth M. Nielsen
What's new in SQL Server 2017
Introduction to azure document db
Analyzing StackExchange data with Azure Data Lake
CCI2017 - Considerations for Migrating Databases to Azure - Gianluca Sartori
Azure SQL Data Warehouse
Sql server hybrid what every sql professional should know
Cortana Analytics Workshop: Azure Data Lake
Delivering Insights from 20M+ Smart Homes with 500M+ Devices
Ad

Similar to Odessa .net-user-group-sql-server-2019-hidden-gems by Denis Reznik (20)

PDF
Sql server 2016 Discovery Day
PPTX
Develop your database with Visual Studio
PPTX
Introduction to SQL Server Internals: How to Think Like the Engine
PPTX
How to think like the engine
PDF
What is SQL Server 2019 Standard Edition
PDF
SQL Server 2019 ctp2.2
PPT
Performance dreams of sql server 2014
PDF
Execution Plans in practice - how to make SQL Server queries faster - Damian ...
PPTX
CTU June 2011 - What’s Interesting In SQL Server Denali
PPTX
SQL Server Workshop for Developers - Visual Studio Live! NY 2012
PDF
SQL Server 2019 CTP2.4
PPTX
What's new in SQL Server 2016
PPTX
SQL Server 2014 New Features
PDF
Practical SQL query monitoring and optimization
PPTX
Enhancements that will make your sql database roar sp1 edition sql bits 2017
PPTX
SQL Server Deep Dive, Denis Reznik
PPTX
PASS Summit - SQL Server 2017 Deep Dive
DOCX
Sql Server 2008 Product Overview
PDF
SQL Server Tuning to Improve Database Performance
PPT
Saying goodbye to SQL Server 2000
Sql server 2016 Discovery Day
Develop your database with Visual Studio
Introduction to SQL Server Internals: How to Think Like the Engine
How to think like the engine
What is SQL Server 2019 Standard Edition
SQL Server 2019 ctp2.2
Performance dreams of sql server 2014
Execution Plans in practice - how to make SQL Server queries faster - Damian ...
CTU June 2011 - What’s Interesting In SQL Server Denali
SQL Server Workshop for Developers - Visual Studio Live! NY 2012
SQL Server 2019 CTP2.4
What's new in SQL Server 2016
SQL Server 2014 New Features
Practical SQL query monitoring and optimization
Enhancements that will make your sql database roar sp1 edition sql bits 2017
SQL Server Deep Dive, Denis Reznik
PASS Summit - SQL Server 2017 Deep Dive
Sql Server 2008 Product Overview
SQL Server Tuning to Improve Database Performance
Saying goodbye to SQL Server 2000
Ad

More from Alex Tumanoff (20)

PPTX
Sql server 2019 New Features by Yevhen Nedaskivskyi
PPTX
Sdlc by Anatoliy Anthony Cox
PPTX
Kostenko ux november-2014_1
PPTX
Java 8 in action.jinq.v.1.3
PPT
"Drools: декларативная бизнес-логика в Java-приложениях" by Дмитрий Контрерас...
PPTX
Spring.new hope.1.3
PPTX
Sql saturday azure storage by Anton Vidishchev
PPTX
Navigation map factory by Alexey Klimenko
PPTX
Serialization and performance by Sergey Morenets
PPTX
Игры для мобильных платформ by Алексей Рыбаков
PDF
Android sync adapter
PPTX
Async clinic by by Sergey Teplyakov
PPTX
Deep Dive C# by Sergey Teplyakov
PPTX
Bdd by Dmitri Aizenberg
PPTX
Неформальные размышления о сертификации в IT
PPTX
Разработка расширений Firefox
PPTX
"AnnotatedSQL - провайдер с плюшками за 5 минут" - Геннадий Дубина, Senior So...
PPTX
Patterns of parallel programming
PPTX
Lambda выражения и Java 8
PPTX
XP практики в проектах с тяжелой наследственностью
Sql server 2019 New Features by Yevhen Nedaskivskyi
Sdlc by Anatoliy Anthony Cox
Kostenko ux november-2014_1
Java 8 in action.jinq.v.1.3
"Drools: декларативная бизнес-логика в Java-приложениях" by Дмитрий Контрерас...
Spring.new hope.1.3
Sql saturday azure storage by Anton Vidishchev
Navigation map factory by Alexey Klimenko
Serialization and performance by Sergey Morenets
Игры для мобильных платформ by Алексей Рыбаков
Android sync adapter
Async clinic by by Sergey Teplyakov
Deep Dive C# by Sergey Teplyakov
Bdd by Dmitri Aizenberg
Неформальные размышления о сертификации в IT
Разработка расширений Firefox
"AnnotatedSQL - провайдер с плюшками за 5 минут" - Геннадий Дубина, Senior So...
Patterns of parallel programming
Lambda выражения и Java 8
XP практики в проектах с тяжелой наследственностью

Recently uploaded (20)

PDF
Guide to Food Delivery App Development.pdf
DOC
UTEP毕业证学历认证,宾夕法尼亚克拉里恩大学毕业证未毕业
PDF
Microsoft Office 365 Crack Download Free
PPTX
Airline CRS | Airline CRS Systems | CRS System
PPTX
CNN LeNet5 Architecture: Neural Networks
PDF
The Dynamic Duo Transforming Financial Accounting Systems Through Modern Expe...
PDF
E-Commerce Website Development Companyin india
PDF
Introduction to Ragic - #1 No Code Tool For Digitalizing Your Business Proces...
PDF
DNT Brochure 2025 – ISV Solutions @ D365
PDF
Visual explanation of Dijkstra's Algorithm using Python
PDF
DuckDuckGo Private Browser Premium APK for Android Crack Latest 2025
PDF
Wondershare Recoverit Full Crack New Version (Latest 2025)
PPTX
Download Adobe Photoshop Crack 2025 Free
PDF
Ableton Live Suite for MacOS Crack Full Download (Latest 2025)
PDF
MCP Security Tutorial - Beginner to Advanced
PPTX
most interesting chapter in the world ppt
PPTX
Introduction to Windows Operating System
PDF
novaPDF Pro 11.9.482 Crack + License Key [Latest 2025]
PDF
Workplace Software and Skills - OpenStax
PDF
AI/ML Infra Meetup | Beyond S3's Basics: Architecting for AI-Native Data Access
Guide to Food Delivery App Development.pdf
UTEP毕业证学历认证,宾夕法尼亚克拉里恩大学毕业证未毕业
Microsoft Office 365 Crack Download Free
Airline CRS | Airline CRS Systems | CRS System
CNN LeNet5 Architecture: Neural Networks
The Dynamic Duo Transforming Financial Accounting Systems Through Modern Expe...
E-Commerce Website Development Companyin india
Introduction to Ragic - #1 No Code Tool For Digitalizing Your Business Proces...
DNT Brochure 2025 – ISV Solutions @ D365
Visual explanation of Dijkstra's Algorithm using Python
DuckDuckGo Private Browser Premium APK for Android Crack Latest 2025
Wondershare Recoverit Full Crack New Version (Latest 2025)
Download Adobe Photoshop Crack 2025 Free
Ableton Live Suite for MacOS Crack Full Download (Latest 2025)
MCP Security Tutorial - Beginner to Advanced
most interesting chapter in the world ppt
Introduction to Windows Operating System
novaPDF Pro 11.9.482 Crack + License Key [Latest 2025]
Workplace Software and Skills - OpenStax
AI/ML Infra Meetup | Beyond S3's Basics: Architecting for AI-Native Data Access

Odessa .net-user-group-sql-server-2019-hidden-gems by Denis Reznik

  • 1. Hidden Gems of SQL Server 2019 Odessa .Net User Group Denis Reznik Data Architect at Intapp, Inc. Microsoft Data Platform MVP
  • 2. About Me • Denis Reznik • Kyiv, Ukraine • Data Architect at Intapp, Inc. • Microsoft Data Platform MVP • Co-Founder of Ukrainian Data Community Kyiv (PASS Chapter) • PASS Regional Mentor, Central and Eastern Europe • Co-author of “SQL Server MVP Deep Dives vol. 2”
  • 3. SQL Server 2019 • Killer Features • Big Data Clusters • Secure Enclaves • Intelligent QP • Java Support • String Truncation Error Message (the most known “hidden” feature) • Hidden Features • Lightweight Query Profiling • DBCC PAGE • dm_os_host_info • dm_os_schedulers • QUERY OPTIMIZER COMPATIBILITY LEVEL
  • 5. Session Level Lightweight Profiling • SQL Server 2014 – sys.dm_exec_query_profiles • SQL Server 2016/2014 SP1 – Live Query Statistics • Enable LQS in SSMS • SET STATISTICS XML ON • SET STATISTICS PROFILE ON • query_post_execution_showplan event • SQL Server 2016/2014 SP2 - query_thread_profile event • SQL Server 2016 SP1 – query_thread_profile/TF 7412 • Lightweight query execution profiling • https://blogs.msdn.microsoft.com/sql_server_team/query-progress-anytime-anywhere/ Server Level
  • 8. Global Allocation MAP (GAM) GAM Extent 1 Query 1 Query 2 LATCH Wait Extent 2 GAM 2 GAM 3 … …4GB 4GB
  • 14. Statistics 500 1000 10 1200 800 1 800 2000 2800 4500 5400 SELECT * FROM Users WHERE Id BETWEEN 2100 AND 2500 SELECT * FROM Users WHERE Id BETWEEN 200 AND 5000
  • 15. 500 1000 10 1200 800 1 800 2000 2800 4500 5400 Statistics SELECT * FROM Users u INNER JOIN Posts p ON u.Id = p.OwnerUserId WHERE u.DisplayName LIKE 'Jeff%' 10600 20000 10 1200 800 A G L S T ZZZZ Users Posts
  • 17. SUMMARY • Truncation Error Message (the most known “hidden” feature) • Lightweight Query Profiling • DBCC PAGE • dm_os_host_info • dm_os_schedulers • QUERY OPTIMIZER COMPATIBILITY LEVEL • More hidden features are coming..
  • 18. Thank You! Denis Reznik Twitter: @denisreznik Email: [email protected] Blog: http://reznik.uneta.com.ua Facebook: https://www.facebook.com/denis.reznik.5 LinkedIn: http://ua.linkedin.com/pub/denis-reznik/3/502/234