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
A grain sampling spear holding a small sample beside a full grain sack

rows_sampled: Checking How Much Data Your Statistics Saw

April 23, 2021
Pinal Dave
SQL Performance
Data Warehousing, Master Data Services, SQL Data Storage, SQL Statistics

A fresh statistic can still come from a small sample. Compare rows with rows_sampled and see how a sample misjudges a rare value.

Read More
Forwarded Records and Performance

Forwarded Records and Performance – SQL in Sixty Seconds #155

February 15, 2021
Pinal Dave
SQL Tips and Tricks
SQL Data Storage, SQL Heap, SQL in Sixty Seconds, SQL Scripts, SQL Server

Forwarded records make SQL Server read extra pages when it scans a heap. In this SQL in Sixty Seconds video, I explain forwarded records and performance.

Read More
A missing courtyard stepping stone leads through a red-ribboned side path to the relocated slab.

SQL SERVER – Finding Fragmentation in Forwarded Records

February 9, 2021
Pinal Dave
SQL Performance
SQL Data Storage, SQL Heap, SQL Scripts, SQL Server

Finding Fragmentation in a heap also requires a separate check for forwarded records. I measure their effect before choosing maintenance.

Read More
Gouache painting of a tightly packed shelf of jars above a shelf with spaced jars and one vermilion jar

Instance Level Fill Factor or Index Level: What to Set

December 23, 2020
Pinal Dave
SQL Performance
SQL Data Storage, SQL Index, SQL Server Configuration

An instance level fill factor is a default for every index that sets none, and an index level setting wins. This post reads the setting, measures what each fill factor costs in pages and saves in page splits, and gives a plan for choosing the level.

Read More
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 hand clipping a peg at the water level of a rain tank's sight tube, older pegs stepping down above

Logging Free Space per Volume Into a Table Each Day

July 9, 2020
Pinal Dave
SQL Tips and Tricks
DBA, Disk, SQL Data Storage, SQL DMV, SQL Monitoring

Log free space per volume from SQL Server volume metadata, keep one daily sample per mount point, and compare change with LAG.

Read More
Two matching doors belong to one building

Can a Database Have Multiple Files with Extension MDF? – Interview Question of the Week #279

May 31, 2020
Pinal Dave
SQL Interview Questions and Answers
SQL Data Storage, SQL Scripts, SQL Server

Question: Can a Database Have Multiple Files with Extension MDF?

Answer: Yes. It is possible to have multiple files with extension MDF.

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

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