Simplifying XEvents Management with dbatools

Slides:



Advertisements
Similar presentations
Module 13: Performance Tuning. Overview Performance tuning methodologies Instance level Database level Application level Overview of tools and techniques.
Advertisements

Maintaining a Microsoft SQL Server 2008 Database SQLServer-Training.com.
Ihr Logo Data Explorer - A data profiling tool. Your Logo Agenda  Introduction  Existing System  Limitations of Existing System  Proposed Solution.
The X-Factor of the Extended Events Amit Khandelwal.
EOH: A Microsoft Partner INTRODUCTION TO EXTENDED EVENTS.
Troubleshooting Workflow 8 Raymond Cruz, Software Support Engineer.
SQL Advanced Monitoring Using DMV, Extended Events and Service Broker Javier Villegas – DBA | MCP | MCTS.
A S P. Outline  The introduction of ASP  Why we choose ASP  How ASP works  Basic syntax rule of ASP  ASP’S object model  Limitations of ASP  Summary.
Customer pulse Why Stretch? How Stretch works? Core Stretch scenarios Demo QA.
SQL Saturday #509 | Brisbane 2016 #509 | Brisbane 2016 Martin Catherall Moving from Profiler to Extended Events.
Mile Hi Power BI User Group
How to be a SharePoint Developer
Reporting Services 2012 Data Alerts
How to tune your applications before moving your database to Microsoft Azure SQL Database (MASD) OK, you've jumped into your Azure journey by creating.
Benchmarking like a PRO
What Is The SSIS Catalog and Why Do I Care?
Troubleshooting SQL Server high CPU usage
Achieve more in less time using the new SQL PowerShell
SQL Server Data Collector From Every Angle
Lead SQL BankofAmerica Blog: SQLHarry.com
SQL Server Monitoring Overview
6 Benefits of Using Microsoft Access Database. Microsoft Access is an efficient program that helps companies to carry out complex business processes in.
Contained DB? Did it do something wrong?
Medlemsträff i Stockholm
Where to Start, What You Need
[+] Title Should Be 'Introduction to Pester‘ 89ms
Migration to SharePoint 2013
Administrating SQL Server with PowerShell dbatools
Administrating SQL Server with PowerShell dbatools
Database Code Management with VS 2017 and RedGate
dbatools! The reason to finally start learning and using Powershell
Femap API Introduction
Wellington, SQLSaturday#706
Making PowerShell Useful
SQL Server 2008 Systems Management
What’s new in SQL Server 2016 Availability Groups
Use PowerShell & dbatools to Manage your SQL Server Environment
Chrissy LeMaire, MVP & Rob Sewell, MVP
SQL Server Scripting using PowerShell
Enterprise Auditing with SQL Server Audit
MAP & ACT Pre deployment planning for Windows 7 or Server 2008 R2
The Dirty Dozen: Windows PowerShell Scripts for the Busy DBA
dbatools! The reason to finally start learning and using Powershell
Reliable, Repeatable, Configurable & Automated Validation with
Cross-Platform, Cloud and On-Premise Database Tool
Automating the install and upgrade of SQL scripts
PowerShell & PowerBi Reducing DBAs Context Switching
Targeting Wait Statistics with Extended Events
Stretch Database - Historical data storage in SQL Server 2016
Patrick Flynn | Link Group Australia
Moving from SQL Profiler to xEvents
Administrating SQL Server with PowerShell dbatools
Cross-Platform, Cloud and On-Premise Database Tool
Microsoft SQL Server Upgrade and Downgrade scenarios
Use PowerShell & dbatools to Manage your SQL Server Environment
Windows 8.1 Deployment Jump Start
Administrating SQL Server with PowerShell dbatools
Gold Sponsors.
Governing Your Enterprise with Policy-Based Management
SQL Server Scripting using PowerShell
dbatools! The reason to finally start learning and using Powershell
Managing and monitoring SQL Server on Linux from the command line
Using Dbatools to Automate Database Migrations
WHAT ARE THE ADVANTAGES AND CHALLENGES OF MICROSOFT SQL SERVER.
What it is and why you should use it
Managing the mystery database
Samuel Kastberg Scripting a BizTalk Server installation
The DBA Quit and now you’re it:
SQL Server on Containers
Life Hacks: dbatools Edition
Presentation transcript:

Simplifying XEvents Management with dbatools Gianluca Sartori, MVP, DBA – Formula 1 Chrissy LeMaire, MVP, DBA – NATO Special Ops HQ

About Us Chrissy LeMaire Gianluca Sartori PowerShell MVP Creator of dbatools.io Best Lightning Talk & Best Speaker - #SqlSatDublin DBA with GDIT at NATO Spec Ops HQ Gianluca Sartori Data Platform MVP Creator of XESmartTarget Independent SQL Server consultant DBA at Scuderia Ferrari Telling the story of me approaching spaghetti

Agenda Overview of Extended Events Benefits & Challenges of Extended Events Introduction to dbatools Introduction to XESmartTarget Demo!

XEvents Overview Replacement for SQL Trace & Profiler First introduced in 2008 Real replacement from version >= 2012 Lightweight event capture infrastructure Deep inside SQLOS Low performance overhead Allows capturing events not available otherwise Microsoft’s recommended way forward

What are XEvents good at? Troubleshooting What happened tonight at 03:40? Tune performance Which queries consume most resources? Capacity Planning How fast are my databases growing? Baselining Is the system behaving normally? Alerting Hey, look: something’s wrong here!

What are XEvents good at? Works on SQL Azure Nice and fast * Erin Stellato says: Creating multiple sessions that can be stopped and started as needed Track causality Write to multiple targets You can now work with data in the SSMS * Check out Jonathan Kehayias’s Measuring “Observer Overhead” of SQL Trace vs. Extended Events dbatools.io/xeoverhead

So why do people keep using Traces / Profiler? More straightforward (less complex) than Extended Events Consistent interface for mixed environments Faster to setup quick traces “XEs are more efficient for the SQL Server engine, but not more efficient for the DBA” Already have a library of Profiler templates Ignorance of XML / Querying all the generated XML is outrageous Templates work remotely across all instances Can’t help you with the mixed environments, but we can help you migrate to newer ones! * Gathered from Erin Stellato’s Why do YOU avoid Extended Events? dbatools.io/whyprofiler

So why do people keep using Traces / Profiler? XEvents are persistent / must be stopped Ability to import PerfMon data and look at Trace and PerfMon counter data at the same time Consistent user experience across SSAS and Database Engine Easy to train others Replaying traces MS Premier Support still asks for traces xe_file_target_read_file is a CPU hog Can’t help you with the mixed environments, but we can help you migrate to newer ones! * Gathered from Erin Stellato’s Why do YOU avoid Extended Events? dbatools.io/whyprofiler

That’s a lot of valid reasons not to switch  Story time?

But what if we could make it less painful? You ever heard of dbatools?

dbatools Can’t help you with the mixed environments, but we can help you migrate to newer ones!

Support SQL Server 2000 – 2017 * Express – Enterprise Edition Clustered and stand-alone instances Windows and SQL authentication Default and named instances Multiple instances on one server Can’t help you with the mixed environments, but we can help you migrate to newer ones!

Install POWERSHELL GALLERY WEBSITE Install-Module dbatools Install-Module dbatools –Scope CurrentUser WEBSITE dbatools.io/download Thanks, Microsoft for the SMO! 😁

How to Get-Help Extensive documentation within each command Get-Help Start-DbaMigration -Detailed Extensive documentation on dbatools.io dbatools.io/Test-DbaLastBackup dbatools.io/Set-DbaSpn Some commands have videos dbatools.io/youtube

XESmartTarget Story time?

XESmartTarget Capabilities Write event data to database tables Alert via email Write to CSV Execute T-SQL Replay Extensible design (code your own responses) Free and Open Source github.com/spaghettidba/XESmartTarget Can be included in your projects (it’s a library!) Provides a way to process Extended Events with no coding required

demo time! sqlps.io/xecode Complementary No suitable template? Use SSMS to create New Sessions Viewing Data Show the torturous creation of a session Don’t use wizard Do you drop down to? Do you generally use a subset? How long did it take you to get comfortable with this interface? Do you dread it? Favorites? Way more options TALK THRU THE DEMO AFTER HE CREATES HIS SESSION