Denis Reznik SQL Server 2017 Hidden Gems.

Slides:



Advertisements
Similar presentations
DBI402. SQL Server Specialist, Financial Industry Boston, MA Conference and INETA Speaker Connections, PASS, TechEd, DevTeach, etc. Author SQL Server.
Advertisements

MAKING BUSINESS INTELLIGENT DBA Delta Force SQL Server 2012 features for the DBA.
Virtual techdays INDIA │ 9-11 February 2011 virtual techdays Auditing Made Easy: Change Tracking and Change Data Capture Pinal Dave │ Technology Evangelist,
1 Chapter Overview Performing Configuration Tasks Setting Up Additional Features Performing Maintenance Tasks.
IN-MEMORY OLTP By Manohar Punna SQL Server Geeks – Regional Mentor, Hyderabad Blogger, Speaker.
SQL Server 2005 Engine Optimistic Concurrency Tony Rogerson, SQL Server MVP Independent Consultant 26 th.
Locking Internals By Amit R S Bansal Director, Principal Consultant & Trainer |
Copyright © 2016, SAS Institute Inc. All rights reserved. HIDDEN GEMS IN SAS ENTERPRISE GUIDE.
What is Data Science and Who is Data Scientist
Deadlocks 3.0. Final Edition. Everything that developer needs to know Denis Reznik Microsoft SQL Server MVP Director of R&D at Intapp Kyiv.
SQL Server Deep Dive Denis Reznik Data Architect at Intapp.
SQL Advanced Monitoring Using DMV, Extended Events and Service Broker Javier Villegas – DBA | MCP | MCTS.
Using Correlated Tracing to Diagnose Query Level Performance What’s slowing down my app? Jerome Halmans Senior Software Development Engineer Microsoft.
You Inherited a Database Now What? What you should immediately check and start monitoring for. Tim Radney, Senior DBA for a top 40 US Bank President of.
Locks, Blocks & Isolation Oh My!. About Me Keith Tate Data Professional for over 14 Years MCITP in both DBA and Dev tracks
No more waiting. Sponsors About me  Database Technology Specialist  MVP  Blogger  Author 3
Read Dirty to Me: SQL Server Isolation Levels Wendy Pastrick Arrow IT Consulting.
C:\Users\> whoami Known on Twitter t An affair with SQL Server for nearly a decade Was part of SQL Escalation Services and Premier Field.
Session Name Pelin ATICI SQL Premier Field Engineer.
SQLintersection Locks, Blocks, and Deadlocks Oh My! Randy Knight Wednesday, 2:15-3:15.
SQL Server Performance Tuning
With Temporal Tables and More
Denis Reznik Data Architect, Intapp, Inc. Microsoft Data Platform MVP
An introduction to Wait Statistics
You Inherited a Database Now What?
Thank You! #sqlsatdnipro Denis
Building a Performance Monitoring System using XEvents and DMVs
Building a Performance Monitoring System using XEvents and DMVs
Parameter Sniffing in SQL Server Stored Procedures
Reading execution plans successfully
Isolation Levels Understanding Transaction Temper Tantrums
Performance Tuning 101: Parallelism
SQL Server Security Mistakes Everyone Makes
Performance Monitoring Using Extended Events, DMVs & Query Store
Query Execution Expectation-Reality Denis Reznik
Building a Performance Monitoring System using XEvents and DMVs
Performance Tuning for Mere Mortals Part II
Re-Indexing - The quest of ultimate automation
dbatools - PowerShell and SQL Server Working Together
It’s Always a Hard Choice
SQL Server Mythconceptions And Mythteries
Rob Farley, LobsterPot Solutions
Everything you ever wanted to ask but were too shy
SQL Server 2014 Hidden Treasures Denis Reznik Microsoft SQL Server MVP
Hidden Gems of SQL Server 2014
Hidden gems of SQL Server 2016
Performance Tuning for Mere Mortals Part II
Securing SQL Server Processes with Certificates
SQL Server Performance Tuning Nowadays
Hidden Gems of SQL Server 2016
මොඩියුල විශ්ලේෂණය SQL Server Waits. Tables රැසක් එකට එකතු කිරීම.
It’s TEMPDB Why Should You Care?
Hidden Gems of SQL Server 2014
You Inherited a Database Now What?
Статистика ожиданий или как найти место "где болит"
Deadlocks Everything you ever wanted to ask but were too shy
Sioux Falls, SD | Hosted by (605) SQL
Hidden Gems of SQL Server 2014
Query Profiling Options in SQL Server
Analyzing Performance Problems Using XEvents, DMVs & Query Store
Building a Performance Monitoring System using XEvents and DMVs
Hidden Gems of SQL Server 2014
Denis Reznik SQL Server 2017 Hidden Gems.
Isolation Levels Understanding Transaction Temper Tantrums
Michelle Haarhues Keeping up with SSMS.
Why should I care about SQL, if I have ORM?
Using wait stats to determine why my server is slow
Analyzing Performance Problems Using XEvents, DMVs & Query Store
XML? What’s this doing in my database? Adam Koehler
Architecture of modern data warehouse
Presentation transcript:

Denis Reznik SQL Server 2017 Hidden Gems

Organizers Natalia Pogorelova Andriy Pogorelov Paul Stetsenko

Sponsors

About Me Denis Reznik Kyiv, Ukraine Data Architect at Intapp, Inc. But Originally from Kharkiv Region 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 2017 Killer Features Hidden Features SQL Server on Linux Graph Database QP Improvements Hidden Features The most “Hidden” feature of SQL Server 2019 Lightweight Profiling File System Views String Aggregation String Trimming Version Store Space Log Statistics Statistics Update/Create CXCONSUMER and CXPACKET waits Functions Troubleshooting Row Goal Compatibility Level

Hidden Features Importance STORY Hidden Features Importance

The most “Hidden” feature of SQL Server 2019 DEMO The most “Hidden” feature of SQL Server 2019

Lightweight Profiling

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/ SQL Server 2017 - ? SQL Server 2019 – Enabled by default Session Level Server Level

Lightweight Profiling DEMO Lightweight Profiling

DEMO File System Views

DEMO String Aggregate

DEMO TRIM

Version Store Space

Version Store Usage with SNAPSHOT SELECT * FROM Users WHERE City = 'Kyiv' BEGIN TRAN UPDATE Users SET City = 'Krakow' WHERE City = 'Kyiv' ID City 1 Krakow 2 3 4 5 6 New York 7 ID City 1 Kyiv 2 Krakow 3 4 5 6 New York 7 X SELECT * FROM Users WHERE City = 'Kyiv' Version Store ID City 1 Kyiv tempdb

DEMO Version Store Space

Transaction Log Statistics DEMO Transaction Log Statistics

CXPACKET and CXCONSUMER Waits

CXPACKET and CXCONSUMER Waits DEMO CXPACKET and CXCONSUMER Waits

Parallel Query Execution Amdal’s Law 2s 1s Thread 1 Thread 2 Thread 3 Thread 4

CX_PACKET (<2017) 2s 1s Thread 0 Thread 1 Thread 2 Thread 3 CXPACKET Wait CXPACKET Wait Thread 1 CXPACKET Wait Thread 2 CXPACKET Wait Thread 3 Thread 4 CXPACKET Wait

CX_PACKET 2017 2s 1s Thread 0 Thread 1 Thread 2 Thread 3 Thread 4 CXCONSUMER Wait CXCONSUMER Wait Thread 1 CXPACKET Wait Thread 2 CXPACKET Wait Thread 3 Thread 4 CXPACKET Wait

Functions Troubleshooting DEMO Functions Troubleshooting

DEMO Row Goal

QUERY OPTIMIZER COMPATIBILITY LEVEL

Statistics SELECT * FROM Users WHERE Id BETWEEN 2100 AND 2500 800 2000 2800 4500 5400

Statistics SELECT * FROM Users u INNER JOIN Posts p ON u.Id = p.OwnerUserId WHERE u.DisplayName LIKE 'Jeff%' Users A G L S T ZZZZ Posts 1 800 2000 2800 4500 5400

QUERY OPTIMIZER COMPATIBILITY LEVEL DEMO QUERY OPTIMIZER COMPATIBILITY LEVEL

SUMMARY Hidden Features Importance Story Truncation Error Message (the most known “hidden” feature) Lightweight Profiling File System Views String Aggregation String Trimming Version Store Space Log Statistics Statistics Update/Create CXCONSUMER and CXPACKET waits Functions Troubleshooting Row Goal Compatibility Level

Sponsors

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