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
Gouache painting: a long wooden shelf of identical round teapots, each with a plain linen string tied around its handle so they can be told apart, the first teapot left bare and one string dyed vermilion

Uniquifier: The Hidden Cost of Duplicate Clustered Keys

November 2, 2020
Pinal Dave
SQL Performance
Clustered Index, SQL Data Storage, SQL DMV, SQL Index

The uniquifier is a hidden 4-byte value that SQL Server adds to duplicate keys in a non-unique clustered index. This post measures its real cost row by row on SQL Server 2025 and shows it on the page. It also compares it with a unique key you choose yourself.

Read More
A burning candle with an iron nail in its side above a pewter dish, a red ribbon below.

Alerting on Long-Running Queries With a SQL Agent Job

October 26, 2020
Pinal Dave
SQL Performance
Database Mail, SQL DMV, SQL Monitoring, SQL Server, SQL Server Agent

Alert on long-running queries with a five-minute SQL Agent job, a deduplicated log, and one Database Mail notice per new request.

Read More
Gouache painting of a pantry shelf of fresh jam jars with one dusty jar with a vermilion lid at the back

Oldest Statistics in SQL Server: Find the Stale Ones First

October 21, 2020
Pinal Dave
SQL Performance
SQL DMV, SQL Scripts, SQL Statistics

To find the oldest statistics in SQL Server, read the last update time and the number of changes since. This post builds a small demo, lists every statistic with its age and percent changed, and shows why a high change count on its own is not a reason to update by hand.

Read More
Gouache painting of a shut garden gate with a vermilion pinwheel spinning impatiently in front of it

Spinlock in SQL Server: What It Is and How to Read One

September 16, 2020
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Memory, SQL Server, SQL Wait Stats

A spinlock in SQL Server is a very short lock on an internal structure, and a thread that waits for it keeps spinning on the CPU instead of sleeping. This post explains how a spinlock differs from a latch and a lock. It reads sys.dm_os_spinlock_stats, measures a ten second window and lists the Extended Events that report backoffs.

Read More
Suspended Process

Sleeping vs Suspended Process – SQL in Sixty Seconds #122

September 10, 2020
Pinal Dave
SQL Video
SQL DMV, SQL in Sixty Seconds, SQL Performance, SQL Server

There are so many different statuses of the processes in SQL Server. Let us learn today the difference between Sleeping vs Suspended Process.

Read More
recent execution

Recent Execution of Stored Procedure – SQL in Sixty Seconds #118

September 5, 2020
Pinal Dave
SQL Video
SQL DMV, SQL in Sixty Seconds, SQL Server Management Studio, SQL Stored Procedure

My clients were not sure which SPs are the recent SP and which SP is no longer used. Today we will learn about the recent execution of the stored procedure. 

Read More
Gouache painting of a telescope on a harbor wall watching one vermilion sailboat move among anchored boats

Watch a Running Query: Live Plan From Activity Monitor

September 2, 2020
Pinal Dave
SQL Tips and Tricks
Execution Plan, SQL Activity Monitor, SQL DMV, SQL Scripts

To watch a running query, open Activity Monitor in SSMS 22, find the query in Active Expensive Queries, and open its live execution plan. It also shows the settings that older versions need and a T-SQL query that reads the same facts.

Read More
Previous 1 … 4 5 6 7 8 9 10 … 45 Next
  • Books
  • Testimonials
  • Privacy Policy

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