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 basket of fresh peaches beside a shelf of preserve jars, some with cloth tops, one deep red jar

CHECKPOINT Covers One Database: Flush Data to Disk

March 19, 2021
Pinal Dave
SQL Performance
Disk, SQL Memory, SQL Scripts, SQL Server

CHECKPOINT covers one database, so to flush data to disk you run it in each database. A demo with two databases shows one flushed and one still dirty. A short script then flushes every database in one pass, and the post says when a flush is worth it.

Read More
A kitchen table tilting on a level floor because one leg still sits on old folded red card.

Auditing Query Hints Left in Production Code

March 18, 2021
Pinal Dave
SQL Performance
Execution Plan, Query Hint, Query Store, SQL Server

Start auditing query hints in modules and Query Store, rank the busiest statements, and test removal with measured plans and rollback.

Read More
Gouache painting of a market stall balance scale pulled down by a crate of heavy pumpkins, one vermilion

Expensive Queries by query_hash: Total Cost, Not One Plan

March 17, 2021
Pinal Dave
SQL Performance
SQL CPU, SQL Memory, SQL Scripts, SQL Server

Expensive queries by query_hash are ranked by total cost, not by single plans. A demo runs one lookup with 40 different literals and shows that the top single plan is a scan, while the grouped total, ranked by reads, points at the lookup. The query ranks by reads, CPU, time or runs.

Read More
Compact and expanded fabric samples are compared beside the required processing tool.

SQL SERVER – Data and Index Compression – Real-World Conversation

March 12, 2021
Pinal Dave
SQL Performance
Compression, SQL Index, SQL Scripts, SQL Server

Index Compression needs workload measurements of storage, I/O and CPU. A customer conversation prompted my earlier advice.

Read More
Gouache painting of a row of glass jars with different water levels along a wall, one under a vermilion funnel

Waits Since Restart: A Wait Stats Query With Uptime Rates

March 8, 2021
Pinal Dave
SQL Performance
SQL Scripts, SQL Server, SQL Wait Stats

Waits since restart show where a SQL Server spends its waiting time. One query ranks the real waits, removes the idle ones, and adds the average wait, the signal share and a rate per hour of uptime. A table maps the common waits to the area to check next.

Read More
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
Gouache painting of a heaped woodpile beside a neat stack of logs on a vermilion pallet

Index Build Speed: Which Rebuild Settings Change the Time

March 1, 2021
Pinal Dave
SQL Performance
SQL Index, SQL Scripts, SQL Server, SQL TempDB

Index build speed depends on rebuild or reorganize, MAXDOP, ONLINE, SORT_IN_TEMPDB and the recovery model. This post times each choice on a million row table and measures the log under each recovery model. It shows which one changes the clock and which changes only the log.

Read More
Previous 1 … 16 17 18 19 20 21 22 … 127 Next
  • Books
  • Testimonials
  • Privacy Policy

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