top free tools for tuning sql statements kevin kline & aaron bertrand sql sentry, inc
TRANSCRIPT
Top Free Tools for Tuning SQL Statements
Kevin Kline & Aaron Bertrand
SQL Sentry, Inc.
Please silence cell phones
Explore Everything PASS Has to Offer
Free SQL Server and BI Web Events Free 1-day Training Events Regional Event
Local User Groups Around the World
Free Online Technical Training
This is Community Business Analytics Training
Session Recordings PASS Newsletter
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
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
Agenda
• Tools for testing• Tools for simulating production• Tools for query plan analysis• Tools for finding performance problems• Tools for improving T-SQL
• HammerDB• SQLIOSIM• SQLQueryStress• IOMeter• tSQLt• Distributed Replay
Tools for testing
Tools for testingDemo
• Stats-only clone• DBCC OPTIMIZER_WHATIF• -P startup flag• QUERYTRACEON query hint
Tools for simulating production
Tools for simulating productionDemo
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
Plan ExplorerDemo
• 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
Tools for finding performance problemsDemo
• Cursor options• SET NOCOUNT ON• Plan caching issues• This could be a full day workshop on its own…
Tools for improving T-SQL
Tools for improving T-SQLDemo
Thank you!Questions?
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