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
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
A layered sea cliff with one red fossil shell set in the middle band and a hand pointing to it

Price in Effect on a Date: Querying a Price History Table

March 5, 2019
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Index, SQL Joins, SQL Server

Query a price history table for the price effective on each order date, enforce unique starts, and compare APPLY lookups with range joins.

Read More
Gouache painting of white card model houses on a drafting table with a vermilion waste bin nearby

Hypothetical Indexes in SQL Server: Find and Drop Them All

February 28, 2019
Pinal Dave
SQL Performance
SQL Index, SQL Scripts, SQL Statistics

Hypothetical indexes are leftovers from the Database Engine Tuning Advisor. They hold a name and statistics but no data. This post lists them, shows they cannot serve a query, and drops them in two steps: a list you read first, and a drop second.

Read More
The morning catch sorted into shallow crates on ice on a harbor quay, a hand lifting one fish from a crate.

Eager Index Spool: When the Plan Builds Its Own Index

February 23, 2019
Pinal Dave
SQL Performance
Execution Plan, SQL Index, SQL Performance, SQL Server

Investigate an eager index spool, read seek keys and output, and compare a supporting index with the cost of rebuilding temporary storage.

Read More
Gouache painting of a cabinet of drawers each holding a bolt and washers, one bolt in vermilion

Index Key Columns and Included Columns in SQL Server

February 21, 2019
Pinal Dave
SQL Performance
SQL DMV, SQL Index, SQL Scripts

Index key columns and included columns show what each index really stores. This post builds one query that lists them for every index, then a second query that finds indexes with the same keys or a shared leading key. It ends with the rules for merging them safely.

Read More
Overlapping spool collections are arranged in one compartmented case while a separate order remains apart

What is Consolidation of Index? – Interview Question of the Week #212

February 10, 2019
Pinal Dave
SQL Interview Questions and Answers
SQL Index, SQL Performance, SQL Server

What is consolidation of index? When a table has overlapping indexes, like one on Col1 and one on Col1, Col2, here is how I think about combining them.

Read More
Overlapping braces are reviewed beside selected fittings and preserved original pieces.

SQL SERVER – Say No To Database Engine Tuning Advisor

February 5, 2019
Pinal Dave
SQL Performance
SQL Index, SQL Server, SQL Statistics

I review Database Engine Tuning Advisor recommendations against the workload before applying them. That was the point behind my original opinion.

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

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