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 of a small vermilion boat on a calm river beside a row of small wooden carts waiting on the bank

RESOURCE_SEMAPHORE vs THREADPOOL: Two Waits, Two Fixes

March 2, 2021
Pinal Dave
SQL Performance
SQL CPU, SQL Memory, SQL Server, SQL Wait Stats

RESOURCE_SEMAPHORE vs THREADPOOL tells you whether a task waits for memory or for a worker thread. This post reads both counters and checks for live waits. A demo shows how an index shrinks a memory grant from 38,216 KB to zero.

Read More
Reusable templates remain separate from the template still engaged in a working press.

SQL SERVER – MARK_IN_USE_FOR_REMOVAL Cache Scope and Costs

January 8, 2021
Pinal Dave
SQL Tips and Tricks
SQL Cache, SQL Memory, SQL Scripts, SQL Server

To Remove Unused cache entries, I first inspect cache and workload evidence. My original intervention followed other customer tuning work.

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
A small workboard clamp is distinct from a locked storage cabinet.

SQL SERVER – What is Latch?

September 15, 2020
Pinal Dave
SQL Tips and Tricks
SQL Memory, SQL Server, SQL Server DBCC, SQL Wait Stats

What is Latch protection in SQL Server was a reader question after my scheduler video. A latch provides short-lived internal synchronization.

Read More
Table Variable Stored

Where are Table Variables Stored? – SQL in Sixty Seconds #095

August 6, 2020
Pinal Dave
SQL Video
SQL in Sixty Seconds, SQL Memory, SQL Performance, SQL Scripts, SQL Server, SQL Variable, Temp Table

A very popular question we will answer today Where are Table Variables Stored? Recently I have posted a few videos on my YouTube Channel,

Read More
Gouache painting of a picnic blanket held down by grey stones on a meadow, with a small vermilion spot at its center

LPIM Memory Model: Check It With sys.dm_os_sys_info

June 19, 2020
Pinal Dave
SQL Performance
SQL Memory, SQL Server Security, Starting SQL

The LPIM memory model tells you whether SQL Server runs with locked pages. This post reads it from sys.dm_os_sys_info in one query, confirms it with the process memory view and the error log, and explains what each value means.

Read More
Busy loom stations are inspected beside a separate tray of waiting yarn bundles.

SQL SERVER – Queries Waiting for Memory Grant – Performance Tuning

June 18, 2020
Pinal Dave
SQL Performance
SQL Memory, SQL Server

Queries Waiting for memory grants give me evidence to investigate. A customer CTO requested that evidence before approving more RAM.

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

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