Identifying Timeouts in SQL Server with Extended Events
In this video we looks at how to capture timeouts in SQL Server using Extended Events. Firstly we look at what a timeout is in SQL Server and how to trigger one. Most of us would think that it's a query that has simply exceeded it's 'timeout setting' and stopped running, however SQL isn't aware of what that setting is, so just views Timeouts as aborted transactions. The great thing about this is that we can replicate this by cancelling the query. To show how we capture this in Extended Events I add a WAITFOR DELAY within a query and ensure implicit transactions are turned off and run a simple query against the database and kill it before the WAITFOR has been hit - easy! The settings of how to setup this XE is shown, so you can set this up within your home SSMS if you wanted and have a play around before introducing it in a live environment. The great thing is that Extended Events is very lightweight so shouldn't have a detrimental effect on performance - bonus! Finally we run through how to group and view this data, which is great as the same method can be applied to any XE. I have several other tutorials on Extended Events as part of my mini course which I link to in this video so take a look. As always let me know if you have any questions - and give the video a like! Content 00:00 Intro 00:38 Understanding SQL Timeouts 01:43 Extended Events Timeouts 02:21 XE Settings - Creating your event 03:16 Capturing Timeouts 05:20 Viewing your data

How To Find Long Running Queries in SQL Server Using Extended Events - Tutorial

Unlocking the Power of WhoIsActive

What is Parameter Sniffing in SQL Server?

How To Use XEvents Profiler (Extended Events vs SQL Profiler)

Why You Need Query Store

Professionally troubleshoot lease timeout in SQL Server availability group cluster

Why The Russian Accent Terrifies Everyone

7 Simple Tricks to Instantly Make Your SQL Queries Better

How I Use sp_BlitzLock To Investigate SQL Server Deadlocks

LeaseTimeout and HealthCheck Timeout - PART 1

SQL Server extended events

SQL Server DBA Tutorial 96 Intro-What are Extended Events in SQL Server

How I Use sp_BlitzIndex To Find Indexing Problems In SQL Server Databases

🚗 BYD : The biggest SCAM of the car industry ?

The Insane Genius of a Formula 1 Gearbox

Master Microsoft SQL Server Database Change Tracking: Step-by-Step Guide for DBAs

HISTORIC COMEBACK BY THE GREATEST JAPANESE GENERATION OF ALL TIME AGAINST ANCELOTTI’S BRAZIL

The Match That Made Brazilians Hate Germany

Nobody Breaks Celebrities Like Rowan Atkinson

