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

  Рет қаралды 11,152

The SQL Guy

The SQL Guy

Күн бұрын

Пікірлер: 11
@surendrasiddhi8502
@surendrasiddhi8502 Жыл бұрын
Thanks for the great tutorial. It is very helpful.
@TheSQLGuy
@TheSQLGuy Жыл бұрын
Glad you enjoyed it.
@everyonesview
@everyonesview 4 жыл бұрын
Cheers for this, mate!
@hindzaafouri930
@hindzaafouri930 7 ай бұрын
Hey , thank you for the tutorial , Is it possible to convert .xel files to .json please ?
@TheSQLGuy
@TheSQLGuy 7 ай бұрын
Hi, it is possible although I've never done it myself but I can take a look if you wanted? It is also possible to read the contents of the XE via T-SQL. I use it to directly query the XE and insert the results into a table. I'm not sure if that helps your use case but I can take a look at converting it to json if you like?
@nickrandles9031
@nickrandles9031 3 жыл бұрын
Hi, thanks for the tutorial. Can you please explain why the time for the 11 second query is stored as 11052568? Is it recorded in microseconds rather than milliseconds?
@fuyfuy1
@fuyfuy1 2 жыл бұрын
yes, it's microseconds
@CarrigansGuitarClub
@CarrigansGuitarClub Жыл бұрын
That was very good - do you know of other ways to capture long running queries?
@TheSQLGuy
@TheSQLGuy Жыл бұрын
Profiler would be one! Extended Events captures them while you aren't monitoring though and is very lightweight which is great. The problem is that you need to capture the RPC Completed event which shows when the query finished. You could create a Timeout XE which would show long running queries which have been terminated by the client, these wouldn't appear in the Long Running Queries XE. I've done a video on that also if you wanted?
@Daavlot
@Daavlot 3 жыл бұрын
Very helpful, thank you!
@dhir4010
@dhir4010 3 жыл бұрын
too small view..difficult to watch
TempDB Sort Spilling (SQL Server Query Tuning)
23:55
SQLMaestros
Рет қаралды 1,9 М.
Air Sigma Girl #sigma
0:32
Jin and Hattie
Рет қаралды 45 МЛН
번쩍번쩍 거리는 입
0:32
승비니 Seungbini
Рет қаралды 182 МЛН
Andro, ELMAN, TONI, MONA - Зари (Official Audio)
2:53
RAAVA MUSIC
Рет қаралды 8 МЛН
Troubleshoot Real-World Scenarios with Extended Events
20:31
Profiling Query Performance In SQL Server With Extended Events The Easy Way
15:02
Erik Darling (Erik Darling Data)
Рет қаралды 2,2 М.
SQL Server Queries Part 6 - JOINS (Inner and Outer Joins)
16:48
WiseOwlTutorials
Рет қаралды 216 М.
Learn to Effectively Use Extended Events
1:01:32
GroupBy
Рет қаралды 4,9 М.
How to Troubleshoot a Slow Running Query in SQL Server by Amit Bansal (Recorded Webinar)
57:13
DataPlatformGeeks & SQLServerGeeks
Рет қаралды 14 М.
Identify long running query using SQL Server Profiler
8:45
The DBA SHOW
Рет қаралды 817
Blocking and Locking: How to Find and Fight Concurrency Problems
58:29
Brent Ozar Unlimited
Рет қаралды 51 М.
SQL Server extended events
10:30
David Dalton
Рет қаралды 3,9 М.