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
Two wooden storage boxes on the floor joined by a short chain locked with a red padlock, one lid open.

What Is a Foreign Key, and What It Protects

August 13, 2013
Pinal Dave
SQL Tips and Tricks
Database, Primary Key, SQL Constraint and Keys, SQL Index

What is a foreign key? It’s a column that must match a key in another table, and SQL Server refuses any value that has no match. This post shows the error it raises, the ON DELETE options, and why the foreign key column needs an index of its own.

Read More
Two hands taking blocks from two sorted bins, one of cubes and one of cylinders, beside a messy heap of blocks.

Rewriting OR Conditions So the Index Gets Used

July 29, 2013
Pinal Dave
SQL Performance
Execution Plan, SQL Index, SQL Performance, SQL Server, SQL Union clause

Rewrite OR conditions with separate seeks, preserve duplicate and NULL behavior, and compare plans before choosing UNION or recompilation.

Read More
A small wooden model ship hull towed through a long indoor test tank, leaving a clean wake behind it.

Sample Databases for Practicing Performance Tuning

June 23, 2013
Pinal Dave
SQL Performance
Execution Plan, SQL Index, SQL Performance, SQL Sample Database

Use sample databases for practicing performance tuning by checking data volume and skew, then enlarging the right tables carefully.

Read More
A fluting iron shaping one pleat while the other pleats remain untouched

Rebuilding One Partition Online Instead of the Whole Index

June 9, 2013
Pinal Dave
SQL Tips and Tricks
SQL Index, SQL Server, Table Partitioning

A big partitioned table does not need a full index rebuild every night. Here is how to rebuild one partition safely.

Read More
Gouache painting: a wide conference hall at dusk with rows of empty chairs facing a small stage with a single lectern, warm lights, one vermilion lanyard draped on the lectern

TechEd India 2013 Bangalore and Pune: A Photo Journey

April 15, 2013
Pinal Dave
SQLAuthority News
Conferences, SQL Index, SQL Performance, SQLAuthority Author Visit

TechEd India 2013 Bangalore and Pune was my fifth TechEd and fourth as a speaker: four sessions in two cities, on performance troubleshooting and indexes, told in photos.

Read More
A red squirrel moving the last acorn from one of two tree hollows into the other, now full

Overlapping Indexes With INCLUDE Columns: Merging Them Safely

April 2, 2013
Pinal Dave
SQL Performance
DBA, SQL DMV, SQL Index, SQL Performance

Find overlapping indexes, compare ordered keys and INCLUDE lists, merge coverage carefully, and review usage before removing either index.

Read More
A pastry docker above equal pastry sheets turned in different directions

Does Column Order in CREATE TABLE Change How Rows Are Stored?

March 17, 2013
Pinal Dave
SQL Tips and Tricks
SQL Index, SQL Scripts, SQL Server

Someone wants to reorder columns to shrink rows. I measured it on SQL Server 2025, and the answer is mostly no, with one small exception worth knowing.

Read More
Previous 1 … 26 27 28 29 30 31 32 … 62 Next
  • Books
  • Testimonials
  • Privacy Policy

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