Please Support Our Sponsors

Slides:



Advertisements
Similar presentations
5 Common SQL Server Performance Issues Jason Hall-SQL Sentry, Dir of Client Services Blog-jasonhall.blogs.sqlsentry.net.
Advertisements

Tempdb Parasites Jason Hall-Dir. of Client SQL Sentry Blog-jasonhall.blogs.sqlsentry.net.
Denny Cherry Manager of Information Systems MVP, MCSA, MCDBA, MCTS, MCITP.
How to kill SQL Server Performance Håkan Winther.
Execution Plans Detail From Zero to Hero İsmail Adar.
High Performance Functions SQLBits VI. Going backwards is faster than going forwards.
New Instance… Now What? Presented by: James Donahoe Senior Solutions Engineer – TeleTracking Technologies MCSA: SQL Server 2012.
Hitting the SQL Server “Go Faster” Button Rob Douglas #509 | Brisbane 2016.
Chris Index Feng Shui Chris
Benchmarking like a PRO
Query Optimization Techniques
Troubleshooting SQL Server high CPU usage
Execution Planning for Success
SQL Server Performance Tuning
Hitting the SQL Server “Go Faster” Button
Power Query Tips & Tricks
Parameter Sniffing in SQL Server Stored Procedures
Reading execution plans successfully
Where to Start, What You Need
Reading Execution Plans Successfully
Four Rules For Columnstore Query Performance
SQL Server May Let You Do It, But it Doesn’t Mean You Should
Introduction to Execution Plans
Parallel Database Maintenance with 24/7 Systems and Huge DBs
Query Execution Expectation-Reality Denis Reznik
Troubleshooting Service Broker
Discover Your Database From The Inside!
Marcos Freccia Stop everything! Top T-SQL tricks to a developer
EXEC and sp_executesql An Ad Hoc Rally
The Ins and Outs of Indexes
The Key to the Database Engine
Hitting the SQL Server “Go Faster” Button
Cardinality Estimator 2014/2016
Query Optimization Techniques
SQL Server Mythconceptions And Mythteries
Statistics: What are they and How do I use them
Azure SQL Database - Managing your database on the cloud
Reading Execution Plans Successfully
Hugo Kornelis Now where does THAT estimate come from? The nuts and bolts of cardinality estimation.
The 5 Hidden Performance Gems
Introduction to Object-Relational Mapping for DBAs
Transact SQL Performance Tips
PowerShell & PowerBi Reducing DBAs Context Switching
PowerShell & PowerBi Reducing DBAs Context Switching
PowerShell & PowerBi Reducing DBAs Context Switching
Introduction to reading execution plans
PowerShell & PowerBi Reducing DBAs Context Switching
Targeting Wait Statistics with Extended Events
Welcome to SQL Saturday Denmark
Stretch Database - Historical data storage in SQL Server 2016
Parameter Sniffing: the Good, the Bad, and the Ugly
Dave Bland LinkedIn SQL Server Execution Plans: How to use them to find performance bottlenecks Dave Bland LinkedIn
Four Rules For Columnstore Query Performance
Please Support our Sponsors
Introduction to Execution Plans
Parameter Sniffing: the Good,the Bad, and the Ugly
Parameter Sniffing: the Good, the Bad, and the Ugly
Power Query Tips & Tricks
Query Tuning Fundamentals
Diving into Query Execution Plans
Ridewaan Hanslo ridewaanhanslo
Introduction to Execution Plans
Query Optimization Techniques
The Five Mistakes You are Probably Making with SQL Server
Michael Wall Senior DBA, Great Western Malting
Reading execution plans successfully
Introduction to Execution Plans
All about Indexes Gail Shaw.
The Ins and Outs of Indexes
Presentation transcript:

Please Support Our Sponsors SQL Saturday is made possible with the generous support of these sponsors. You can support them by opting-in and visiting them in the sponsor area.

Don’t forget to silence your phone

Post Con

Monitoring SQL 2016 on premise for performance and stability

Agenda Who is Chris Wood Which database has the I/O Look at your execution plans – what are they telling you High CPU usage queries Cost threshold controls parallel processing What indexes are you using – all of them or just some What tables do your queries have trouble updating Clear out ad-hoc and prepared plans Who did I get this information from

Who is Chris Wood I am an Englishman who emigrated to Canada in 1982 I started my DBA career on CA-IDMS in 1989 and in 1997 on SQL 6.5. I have been to 12 PASS SUMMITs (learnt many things over the years that you will see) and two-time SQL Cruiser. EDMPASS Communications Director since chapter start-up. Twitter @ChrisAVWood Email ChrisAVWood@outlook.com

Create a monitoring database on the server you want to watch You need somewhere to save all your discovered data

Monitoring Tables and indexes FileStats WaitStats SPQueryPlans SPCostPlans ScanStats OperStats

Demo

Look at your execution plans They contain the information you need to see what your queries actually do We are looking for ‘bad habits’ and estimated costs What are the ‘bad habits’?

Timed Out Plans Query is too complex or not enough resources

No Join Predicates Trying to join tables without a common column. Most likely using old syntax.

Implicit Conversions Comparing different data types can lead to indexes not being used

Demo

High CPU Queries Could be run many times or just use a lot of CPU each time it is run

Demo

Cost Threshold for Parallelism Controls when a parallel plan could be used for multiple core instances Goes with the Max Degree of Parallelism setting

Demo

What Indexes Are You Using Information gathered from dm_db_index_usage_stats DMV

What Tables Do Your Queries Have Trouble Updating Information gathered from dm_db_index_operational_stats DMV

Demo

Clear Out ad-hoc and prepared one time plans Optimize for ad hoc workloads doesn’t stop plan bloat

Demo

Who Did I Get This Information From Execution plans – Jason Strate and Jared Karney High CPU Queries – Glenn Berry Cost Threshold – Grant Fritchey What Indexes Are You Using – Tim Ford What Tables Do You Have Trouble Updating – Tim Ford Clear Out Ad-Hoc and Prepared Plans – Kimberly Tripp