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
Execution Plan with query and index options.

SQL SERVER – An Interesting Case of Redundant Indexes – Index on Col1, Col2 and Index on Col1, Col2, Col3 – Part 2

January 7, 2013
Pinal Dave
SQL Tips and Tricks
SQL Index

Is every redundant index safe to drop? In part 2 of this interesting case of redundant indexes, Jon shows Mike a demo where a redundant index should stay.

Read More
Gouache painting: two wooden ladders leaning on one orchard wall, a short one beside a tall one with identical lower rungs, one vermilion rung on the short ladder

Redundant Indexes: Index on Col1, Col2 vs Col1, Col2, Col3

January 4, 2013
Pinal Dave
SQL Performance
Execution Plan, SQL DMV, SQL Index, SQL Scripts

Redundant indexes cost space and slow every write, but not every one can go. This post measures an index on Col1, Col2 next to an index on Col1, Col2, Col3 on SQL Server 2025: size, plan, reads and log bytes. It ends with a safe way to remove one.

Read More
A cleared hallway with rugs rolled up against the wall and a wardrobe just brought in.

Disabling Nonclustered Indexes Before a Large Load, Then Rebuilding

December 22, 2012
Pinal Dave
SQL Performance
DBA, ETL, SQL Index, SQL Server

Test disabling nonclustered indexes before a large load, rebuilding them afterward, and measuring total time and log use.

Read More
Gouache painting of a wooden pantry shelf with a row of identical cream jars, three of them crowded together and only one wearing a vermilion lid.

Delete Duplicate Records in SQL Server: SQL in Sixty Seconds #036

December 19, 2012
Pinal Dave
SQL Video
Duplicate Records, SQL Delete, SQL in Sixty Seconds, SQL Index

To delete duplicate records safely, look at them first. The tests here find the duplicates, preview the rows that will go, delete all but the newest copy inside one transaction and add a unique index so they cannot return. Every query ran on SQL Server 2025.

Read More
A cork borer and extracted core beside intact and fully opened cork stoppers

SAMPLED vs DETAILED: Running index_physical_stats Safely

November 26, 2012
Pinal Dave
SQL Performance
SQL Index, SQL Performance, SQL Server

A misspelled table name quietly turns into a scan of everything. Here is the guard, and a fair comparison of the three scan modes on one small index.

Read More
Four dishes waiting in line for one oven, a red casserole first

Ordering a Maintenance Window: Backups, CHECKDB and Index Work

November 6, 2012
Pinal Dave
SQL Tips and Tricks
DBA, Maintenance Plan, SQL Backup and Restore, SQL Index, SQL Server DBCC

Order a maintenance window by listing Agent schedules, separating CHECKDB, backups, index work, and statistics, then tracking growth.

Read More
A wooden bee hotel of hollow tubes on a garden wall, each tube sealed separately, one bee landing at its own.

A Multi-Tenant Schema With a TenantId Column: Keys, Indexes and Safety

October 16, 2012
Pinal Dave
SQL Tips and Tricks
Schema, SQL Constraint and Keys, SQL Index, SQL Server, SQL Server Security

Design a multi-tenant schema with composite keys, tenant-first indexes, trusted session context, and row-level security checks.

Read More
Previous 1 … 29 30 31 32 33 34 35 … 64 Next
  • Books
  • Testimonials
  • Privacy Policy

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