SQL Server Mythconceptions And Mythteries

Slides:



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

Case Study: Designing a Global Scaled-out Architecture Robert L Davis
Intro to SQL Server Performance Tuning By Robert Biddle.
SQL Server 2008 R2 for the DBA Patrick LeBlanc. Objectives  New Editions  Datacenter  Parallel Data Warehouse  Multi-server management  Utility Control.
+ Administering Microsoft SQL Server 2012 Databases Implementing a Data Warehouse with Microsoft SQL Server = Querying Microsoft SQL.
Making DBCC CHECKDB Go Faster Argenis Fernandez Senior Database Engineer
Licensing SQL Server on a Virtual Platform Robert L Davis
Diagnosing Performance with Wait Statistics Robert L Davis Principal Database
How to kill SQL Server Performance Håkan Winther.
Strategies for Working with Texas-sized Databases Robert L Davis Database Engineer
James Serra Data Platform Solution Architect Microsoft JamesSerra.com.
SQL Server Deep Dive Denis Reznik Data Architect at Intapp.
Rolling Upgrades, The Easy Way Argenis Fernandez Senior Database Engineer,
So you want to be a DBA….
Doing fast! Optimizing Query performance with ColumnStore Indexes in SQL Server 2012 Margarita Naumova | SQL Master Academy.
10 Things All BI Administrators Should Know Robert L Davis Database Engineer
Carlos Bossy Quanta Intelligence SQL Server MCTS, MCITP BI CBIP, Data Mining Real-time Data Warehouse and Reporting Solutions.
SQLSTARTER - INTRO TO DATABASE DEVELOPMENT Kevin Kline Technical Evangelist, SQL Sentry SQL Server MVP since 2003 Twitter, FB, LI, KEKline Blog:
SQL Server Performance Tuning
Become a Microsoft Certified Professional of SQL Server Frank Qin Sacramento SQL User Group Meeting Feb. 4, 2015.
Denis Reznik Data Architect, Intapp, Inc. Microsoft Data Platform MVP
Top 10 DBA mistakes that affect the SQL Server performance
Securing SQL Server Processes with Certificates
An introduction to Wait Statistics
Parameter Sniffing in SQL Server Stored Procedures
Enhancing your career: Building your personal brand
Execution Planning for Success
Thank You! #sqlsatdnipro Denis
Parameter Sniffing in SQL Server Stored Procedures
Reading execution plans successfully
Exploiting SQL Server Security Holes
Performance Tuning 101: Parallelism
Please Support Our Sponsors
Reading Execution Plans Successfully
Who Has What to Which? (The Permissions Superset)
Troubleshooting SQL Server Connection Issues
SQL Server Security Mistakes Everyone Makes
Code-Less Securing of SQL Server
Query Execution Expectation-Reality Denis Reznik
Troubleshooting Service Broker
How to Lose Your Job in 3 Easy Steps
PASS Business Analytics Virtual Group & Marek Matuszewski
The Ins and Outs of Indexes
Troubleshooting SQL Server Basics
SQLSaturday 393- May 16, Redmond, WA
The Ins and Outs of Indexes
Please support our sponsors
Performance Tuning for Mere Mortals Part II
dbatools - PowerShell and SQL Server Working Together
Hidden gems of SQL Server 2016
Performance Tuning for Mere Mortals Part II
Securing SQL Server Processes with Certificates
Reading Execution Plans Successfully
New Paradigm for Performance Tuning in SQL Server 2016
SQL Server Performance Tuning Nowadays
SQLCmd Mode The T-SQL Easy Button
SQL Server Mythconceptions And Mythteries
Transact SQL Performance Tips
In Memory OLTP Not Just for OLTP.
Hidden Gems of SQL Server 2016
Summit Nashville /3/2019 1:48 AM
The Ins and Outs of Indexes
CS122B: Projects in Databases and Web Applications Spring 2018
The Five Mistakes You are Probably Making with SQL Server
Denis Reznik SQL Server 2017 Hidden Gems.
Michelle Haarhues Keeping up with SSMS.
Reading execution plans successfully
Why should I care about SQL, if I have ORM?
The Ins and Outs of Indexes
Denis Reznik SQL Server 2017 Hidden Gems.
Presentation transcript:

SQL Server Mythconceptions And Mythteries Robert L Davis Principal Database Architect robertd@dbbest.com @SQLSoldier www.sqlsoldier.com

Robert L Davis Principal Database Architect at DB Best Technologies Greater Seattle Area | Information Technology and Services Past: Blog: Twitter: LinkedIN: Principal DBA at Outerwall, Inc. P.M. SQL Server Master Certification Program at Microsoft Sr. Database Administrator at Microsoft www.SQLSoldier.com @SQLSoldier www.linkedin.com/in/robertldavis Principal Database Architect at DB Best Technologies www.dbbest.com Former Principal DBA at Outerwall, Inc Former Sr. Product Consultant with Idera Software Former Program Manager for SQL Server Certified Master program in Microsoft Learning Former Sr. Production DBA / Operations Engineer at Microsoft (CSS) Microsoft Certified Master: SQL Server 2008 / MCSM Charter: Data Platform Co-founder of the SQL PASS Security Virtual Chapter MCITP: Database Developer: SQL Server 2005 and 2008 MCITP: Database Administrator: SQL Server 2005 and 2008 MCSE: Data Platform MVP 2014 Co-author of Pro SQL Server 2008 Mirroring Former Idera ACE (Advisors & Community Educators) 2 time host of T-SQL Tuesday Guest Professor at SQL University, summer 2010, spring/summer 2011 Speaker at SQL PASS Summit 2010, 2011, and 2012 including a pre-con in 2012 Speaker/Pre-con at SQLRally 2012 13+ years working with SQL Server Writer for SQL Server Pro (formerly SQL Server Magazine) Member: Mensa Dog picture: Maggie and Woody SQLCruise instructor: Seattle to Alaska 2012 Speaker at SQL Server Intelligence Conference in Seattle 2012 Blog: http://www.sqlsoldier.com Twitter: http://twitter.com/SQLSoldier

SQL Server Mythconceptions And Mythteries “Of all the various unpleasant ways to be aroused from a sound sleep, one of the worst is the noise of a dragon and a unicorn playing tag.”

SQL Server Mythconceptions And Mythteries Data-tier Application

SQL Server Mythconceptions And Mythteries Data-tier Application

SQL Server Mythconceptions And Mythteries Data-tier Application DAC for short

SQL Server Mythconceptions And Mythteries Data-tier Application DAC for short “…because DTA was already an established acronym in SQL Server.”* * Paraphrasing, the blog post was later deleted

SQL Server Mythconceptions And Mythteries Database Engine Tuning Advisor

SQL Server Mythconceptions And Mythteries Database Engine Tuning Advisor DTA for short

SQL Server Mythconceptions And Mythteries Dedicated Admin Connection

SQL Server Mythconceptions And Mythteries Dedicated Admin Connection DAC for short

SQL Server Mythconceptions And Mythteries Sweet Mythtery that is Parallelism

SQL Server Mythconceptions And Mythteries Sweet Mythtery that is Parallelism If you want a query to run in serial you have to change the Max DOP setting

SQL Server Mythconceptions And Mythteries Sweet Mythtery that is Parallelism If you want a query to run in serial you have to change the Max DOP setting MaxDOP query always overrides Max DOP server setting

SQL Server Mythconceptions And Mythteries Sweet Mythtery that is Parallelism If you want a query to run in serial you have to change the Max DOP setting MaxDOP query always overrides Max DOP server setting MaxDOP query hint cannot override Max DOP resource group settings

SQL Server Mythconceptions And Mythteries Sweet Mythtery that is Parallelism If you want a query to run in serial you have to change the Max DOP setting MaxDOP query always overrides Max DOP server setting MaxDOP query hint cannot override Max DOP resource group settings Parallel plans are always executed in parallel

SQL Server Mythconceptions And Mythteries Sweet Mythtery that is Parallelism If you want a query to run in serial you have to change the Max DOP setting MaxDOP query always overrides Max DOP server setting MaxDOP query hint cannot override Max DOP resource group settings Parallel plans are always executed in parallel And more!

SQL Server Mythconceptions And Mythteries DEMO

SQL Server Mythconceptions And Mythteries What will it use exactly? Query Hint (QH) Resource Governor (RG) Server Config Effective MAXDOP of query Not set Not set (0) Server decides (up to 64) Set Use server config Use RG Use QH Use min(RG, QH) Use min (RG, QH) Adapted from http://blogs.msdn.com/b/psssql/archive/2015/04/28/server-s-max-degree-of-parallelism-setting-resource-governor-s-max-dop-and-query-hint-maxdop-which-one-should-sql-server-use.aspx by Jack Li

SQL Server Mythconceptions And Mythteries Parallelism can be stripped out at run-time if server is short of memory or threads

SQL Server Mythconceptions And Mythteries Parallelism can be stripped out at run-time if server is short of memory or threads If cost for a serial plan is above the cost threshold for parallelism, a parallel plan will be generated, but SQL Server will use the lower total costing plan

SQL Server Mythconceptions And Mythteries New indexes may not be recognized right away on a busy server

SQL Server Mythconceptions And Mythteries New indexes may not be recognized right away on a busy server Modifying an index causes all plans that reference the index to be marked for recompilation

SQL Server Mythconceptions And Mythteries New indexes may not be recognized right away on a busy server Modifying an index causes all plans that reference the index to be marked for recompilation New indexes are not referenced in any query plans and may not be noticed if the server is busy

SQL Server Mythconceptions And Mythteries And yet sometimes the index is still not used…

SQL Server Mythconceptions And Mythteries And yet sometimes the index is still not used… DEMO

SQL Server Mythconceptions And Mythteries And yet sometimes the index is still not used… Index does not provide all columns needed for result set Clustered index or table scan Index seek plus Key/RID lookups Tipping point is generally between 2% and 3% of total rows

SQL Server Mythconceptions And Mythteries Q & A

Thank You! local PASS Community & Sponsors!

Thank you for coming! Thanks! My blog: www.sqlsoldier.com Twitter: twitter.com/SQLSoldier Engage me on your project: www.DBBest.com