Rob Farley, LobsterPot Solutions Microsoft Ignite 2015 11/23/2018 9:58 PM Using Live Query Statistics to see the inner workings of your queries in SQL 2014 and 2016 Rob Farley, LobsterPot Solutions DAT442 © 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
About Rob Farley LobsterPot Solutions – Gold Partner Microsoft Certified Master Microsoft MVP Microsoft Certified Trainer APS/PDW Trainer Author: Professional SQL Server 2012 Internals & Troubleshooting Twitter: @rob_farley Email: rob@lobsterpot.com.au
What is LQS? Well let me show you… The Query Plan builds as the query runs
How? sys.dm_exec_query_profiles …available in SQL 2014 SP1 SET STATISTICS PROFILE ON SSMS 2016 then polls the DMV
What can we learn? All kinds of things! Blocking operators Join types Spools Learn how your query actually runs!
What about short-running queries? Use a strobe-like method! Loop over the query Poll the DMV Figure out what the results mean LQS is not just for long-running queries But don’t use it at all in production – only in dev/test
Complete your session evaluation on My Ignite for your chance to win one of many daily prizes.
Continue your Ignite learning path Microsoft Ignite 2015 11/23/2018 9:58 PM Continue your Ignite learning path Visit Microsoft Virtual Academy for free online training visit https://www.microsoftvirtualacademy.com Visit Channel 9 to access a wide range of Microsoft training and event recordings https://channel9.msdn.com/ Head to the TechNet Eval Centre to download trials of the latest Microsoft products http://Microsoft.com/en-us/evalcenter/ © 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.