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 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
Gouache painting of pairs of large and small cups on a shelf with one small vermilion cup

Case-Sensitive WHERE Clause: COLLATE Without Losing the Seek

March 15, 2021
Pinal Dave
SQL Tips and Tricks
SQL Collation, SQL Scripts, SQL Search, SQL Server, SQL String

A case-sensitive WHERE clause needs a COLLATE on the comparison, but the obvious version scans the index. A demo measures 286 reads against 2, and shows two fixes: keep the plain test beside it, or give the column a case-sensitive collation.

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
Wait Stats for Performance

Wait Stats for Performance – SQL in Sixty Seconds #157

March 9, 2021
Pinal Dave
SQL Tips and Tricks
SQL in Sixty Seconds, SQL Scripts, SQL Server, SQL Wait Stats

I finally decided to create a video on that topic on my SQL in Sixty Seconds Channel. I will create more videos on the topic Wait Stats for Performance.

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
An engaged fitting clamp remains separate from older pieces awaiting inspection.

SQL SERVER – Find Untrusted Foreign Key

March 3, 2021
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Scripts, SQL Server, SQL Server Security

An Untrusted Foreign key has not validated all existing rows. A customer bulk-load history prompted this inventory.

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 … 17 18 19 20 21 22 23 … 365 Next
  • Books
  • Testimonials
  • Privacy Policy

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