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
An empty warehouse receiving dock at dawn with a new conveyor running to an open door, and a hand-lettered cardboard sign taped to the frame reading MONDAYS: WAIT TILL 9

AI Generated ETL Worked on Day One. Then Came Monday.

September 25, 2026
Pinal Dave
AI
AI, Data Observability, Data Warehousing, ETL

AI generated ETL ran clean on the first try, and it took six weeks to find out what it was missing. A late Monday file, a file sent twice, a file full of zeros and mangled names all got through. The ugly old job had a rule for every one of them, and nobody had written those rules down. Now I ask AI for the failure list before I ask for any code.

Read More
A wardrobe of shirts hung in color order, a hand reaching into one section, a few shirts out of place

Ordered Clustered Columnstore Index for Better Rowgroup Elimination

October 27, 2023
Pinal Dave
SQL Performance
ColumnStore Index, Data Warehousing, SQL Server, SQL Server 2022

Build an ordered clustered columnstore on SaleDate, compare segment ranges and skipped segments, and review how later loads affect order.

Read More
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
A wire stripper beside a transformed cable section and its removed outer sleeve

Masking Test Data With REGEXP_REPLACE in SQL Server 2025

April 13, 2019
Pinal Dave
SQL Tips and Tricks
Data Visualization, Data Warehousing, Master Data Services, SQL Data Storage

Before a production copy reaches a developer, replace the real emails and phone numbers. Here is a small, checked way to do it with REGEXP_REPLACE.

Read More
Ice tongs lifting a cube from one side of a fixed trough divider

Recent Rows Only: A Filtered Index for the Data Everyone Reads

March 21, 2019
Pinal Dave
SQL Performance
Data Warehousing, Master Data Services, SQL Data Storage, SQL Index

A filtered index for recent rows is small and fast, but its date never moves by itself. Here is how to build it, test it and keep it fresh.

Read More
Tightly rolled fleeces in a row on a barn floor, beside an open hamper of loose wool waiting to be rolled.

Columnstore Bulk Load: Why Batch Size Decides Where Rows Land

January 22, 2019
Pinal Dave
SQL Performance
ColumnStore Index, Data Warehousing, SQL Index, SQL Server

Review columnstore bulk load batch sizes, inspect delta and compressed rowgroups, and measure the cost of forcing small groups to compress.

Read More
Fine wax bead from a copper canting beside a broad hardened wax bead

The money Data Type: Where Division and Rounding Go Wrong

October 10, 2017
Pinal Dave
SQL Tips and Tricks
Data Visualization, Data Warehousing, Master Data Services, SQL Data Storage

Dividing money by money loses digits before any cast can save them. Here is the one-third demo, and how to find the leftover penny.

Read More
1 2 3 4 … 11 Next
  • Books
  • Testimonials
  • Privacy Policy

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