This month's discount Comprehensive Database Performance Health Check · Testimonials
SQLAuthority with Pinal Dave
Home
  • Consulting
    • Health Check
  • Free Videos
  • All Articles
    • AI
    • SQL Performance
    • SQL Tips and Tricks
    • Interview Questions and Answers
    • SQL Puzzle
    • SQL Video
    • SQLAuthority News
    • Personal
  • Books
  • Consulting
Two hands across a table, one holding salt and one holding a red pepper shaker, each reaching for the other's.

Reading Deadlock Graphs From the system_health Session

March 24, 2020
Pinal Dave
SQL Performance
DBA, Deadlock, SQL Extended Events, SQL Lock

Read deadlock graphs from system_health, identify victims and resource owners, reproduce a two-session cycle, and choose a targeted fix.

Read More
A hand holding open the front of a Victorian dollhouse to show the rooms and staircase inside

Capturing the SQL Behind SSMS Reports With Extended Events

March 21, 2020
Pinal Dave
SQL Tips and Tricks
SQL Extended Events, SQL Reports, SQL Server, SQL Server Management Studio

Capture the SQL behind SSMS reports with a filtered Extended Events ring buffer, inspect batch text, and remove the session afterward.

Read More
Gouache painting of a butterfly net on a garden fence holding one vermilion butterfly among resting grey moths

Memory Grant Feedback Events: Capture Them in T-SQL

December 4, 2019
Pinal Dave
SQL Performance
SQL Extended Events, SQL Memory, SQL Scripts

Memory grant feedback events list every query whose memory grant keeps changing, and the moment SQL Server gives up on it. This post creates the Extended Events session in T-SQL, watches it live in SSMS and reads it with one query that names the procedure.

Read More
Gouache painting of a small wildlife camera strapped to a birch tree, aimed at one narrow forest path, with a vermilion cord running to a stake.

Capture Query Plans With Extended Events: A Safe, Scoped Session

November 4, 2019
Pinal Dave
SQL Performance
Execution Plan, SQL Extended Events, SQL Performance, SQL Scripts

To capture query plans without guessing, use an Extended Events session scoped to one database and a duration threshold. This post builds one on SQL Server 2025, reads the captured actual plan, and measures why plan capture must be switched on briefly and then off.

Read More
Asparagus shoots growing in close groups separated by a broad patch of bare soil

Sessionizing Events: Grouping Activity Into Sessions by Idle Gap

July 9, 2019
Pinal Dave
SQL Tips and Tricks
SQL Activity Monitor, SQL Extended Events, SQL Server

Your events have a user and a time but no visit ID. Here is how to infer sessions from an idle gap with LAG and a running sum.

Read More
An open hand fan with many ribs connected to one shared pivot

Capturing Successful Logins With an Extended Events Session

April 12, 2019
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Extended Events, SQL Server

A login event is a connection, not a user action. A small session shows how one query can leave three of them behind.

Read More
SQL SERVER - xp_create_subdir() Returned Error 183, 'Cannot Create a File When that File Already Exists

SQL SERVER – xp_create_subdir() Returned Error 183, ‘Cannot Create a File When that File Already Exists

December 11, 2018
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Extended Events, SQL Scripts, SQL Server

A client’s maintenance plan kept failing with: xp_create_subdir() returned error 183, Cannot create a file when that file already exists. Here is the fix.

Read More
Previous 1 2 3 4 5 … 7 Next
  • Books
  • Testimonials
  • Privacy Policy

© 2006 – 2026 All rights reserved. pinal @ SQLAuthority.com