top free tools for tuning sql statements kevin kline & aaron bertrand sql sentry, inc

18
Top Free Tools for Tuning SQL Statements Kevin Kline & Aaron Bertrand SQL Sentry, Inc.

Upload: felix-warren

Post on 31-Dec-2015

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Top Free Tools for Tuning SQL Statements Kevin Kline & Aaron Bertrand SQL Sentry, Inc

Top Free Tools for Tuning SQL Statements

Kevin Kline & Aaron Bertrand

SQL Sentry, Inc.

Page 2: Top Free Tools for Tuning SQL Statements Kevin Kline & Aaron Bertrand SQL Sentry, Inc

Please silence cell phones

Page 4: Top Free Tools for Tuning SQL Statements Kevin Kline & Aaron Bertrand SQL Sentry, Inc

Session Evaluations

ways to access

Go to passsummit.com/evals

Download the GuideBook App and search: PASS Summit 2014

Follow the QR code link displayed on session signage throughout the conference venue and in the program guide

Submit by 11:59 PM ESTFriday Nov. 7 toWIN prizes

Your feedback is important and valuable.

Evaluation Deadline: 11:59 PM EST, Sunday Nov.

16

Page 5: Top Free Tools for Tuning SQL Statements Kevin Kline & Aaron Bertrand SQL Sentry, Inc

About us

Aaron Bertrand @AaronBertrand

Senior Consultant

Microsoft MVP since 1997Author, MVP Deep Dives 1 & 2http://sqlblog.com/http://sqlperformance.com/

http://sqlsentry.com/

Kevin Kline @kekline

Director, Engineering Services

Microsoft MVP since 2003Author, SQL in a Nutshell and 11 morehttp://KevinEKline.comhttp://SQLSentry.TV

Page 6: Top Free Tools for Tuning SQL Statements Kevin Kline & Aaron Bertrand SQL Sentry, Inc

Agenda

• Tools for testing• Tools for simulating production• Tools for query plan analysis• Tools for finding performance problems• Tools for improving T-SQL

Page 7: Top Free Tools for Tuning SQL Statements Kevin Kline & Aaron Bertrand SQL Sentry, Inc

• HammerDB• SQLIOSIM• SQLQueryStress• IOMeter• tSQLt• Distributed Replay

Tools for testing

Page 8: Top Free Tools for Tuning SQL Statements Kevin Kline & Aaron Bertrand SQL Sentry, Inc

Tools for testingDemo

Page 9: Top Free Tools for Tuning SQL Statements Kevin Kline & Aaron Bertrand SQL Sentry, Inc

• Stats-only clone• DBCC OPTIMIZER_WHATIF• -P startup flag• QUERYTRACEON query hint

Tools for simulating production

Page 10: Top Free Tools for Tuning SQL Statements Kevin Kline & Aaron Bertrand SQL Sentry, Inc

Tools for simulating productionDemo

Page 11: Top Free Tools for Tuning SQL Statements Kevin Kline & Aaron Bertrand SQL Sentry, Inc

Plan Explorer download:• http://sqlsentry.com/plan-explorer

Many of these demos can be downloaded:• http://sqlperformance.com/updated-plan-explorer-demo-kit

PluralSight Course by Jonathan Kehayias:• http://bit.ly/PETraining

Plan Explorer

Page 12: Top Free Tools for Tuning SQL Statements Kevin Kline & Aaron Bertrand SQL Sentry, Inc

Plan ExplorerDemo

Page 13: Top Free Tools for Tuning SQL Statements Kevin Kline & Aaron Bertrand SQL Sentry, Inc

• Adam Machanic’s sp_whoisactive• Brent Ozar’s sp_askBrent, sp_blitz• Extended events – Jonathan Kehayias• DMVs – Glenn Berry’s diagnostic queries• System info: dm_os_performance_counters, dm_os_wait_stats• Query info: dm_exec_requests, dm_exec_query_stats• Plans: dm_exec_query_plan, dm_exec_plan_attributes• Cache/buffer pool: dm_exec_cached_plans, dm_os_buffer_descriptors• Index info: dm_db_index_usage_stats, dm_io_virtual_file_stats

Tools for finding performance problems

Page 14: Top Free Tools for Tuning SQL Statements Kevin Kline & Aaron Bertrand SQL Sentry, Inc

Tools for finding performance problemsDemo

Page 15: Top Free Tools for Tuning SQL Statements Kevin Kline & Aaron Bertrand SQL Sentry, Inc

• Cursor options• SET NOCOUNT ON• Plan caching issues• This could be a full day workshop on its own…

Tools for improving T-SQL

Page 16: Top Free Tools for Tuning SQL Statements Kevin Kline & Aaron Bertrand SQL Sentry, Inc

Tools for improving T-SQLDemo

Page 17: Top Free Tools for Tuning SQL Statements Kevin Kline & Aaron Bertrand SQL Sentry, Inc

Thank you!Questions?

Page 18: Top Free Tools for Tuning SQL Statements Kevin Kline & Aaron Bertrand SQL Sentry, Inc

Session Evaluations

ways to access

Go to passsummit.com/evals

Download the GuideBook App and search: PASS Summit 2014

Follow the QR code link displayed on session signage throughout the conference venue and in the program guide

Submit by 11:59 PM ESTFriday Nov. 7 toWIN prizes

Your feedback is important and valuable.

Evaluation Deadline: 11:59 PM EST, Sunday Nov.

16