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
Forwarded Records Impact Count and Pages.

SQL SERVER – What is Forwarded Records and How to Fix Them?

March 8, 2018
Pinal Dave
SQL Tips and Tricks
Clustered Index, SQL Heap, SQL Index, SQL Scripts, SQL Server

Forwarded Records in heap tables still puzzle many SQL Server users, years after I first wrote about them. Here is what they are and how to fix them.

Read More
An empty extended bicycle repair stand takes more floor space than an identical folded stand

Deleting From a Heap: Why Empty Pages Stay Behind

May 27, 2015
Pinal Dave
SQL Tips and Tricks
SQL Data Storage, SQL Delete, SQL Heap

The rows are gone but the table is the same size and scans are just as slow. Here is why, and two ways to fix it.

Read More
Gouache painting of three neat crates of pears beside a loose heap of peaches on a red cloth

Count Rows and Indexes for Every Table in SQL Server

October 10, 2012
Pinal Dave
SQL Performance
Clustered Index, SQL Heap, SQL Index, SQL Scripts

To count rows and indexes for every table, one query on the catalog views answers four questions at once: how many tables, which are heaps, how many nonclustered indexes each has, and how many rows each holds. The post tests it on a demo database and explains where the row count comes from.

Read More
A carpet stretcher pulls ripples flat while the carpet remains uncut and keeps its existing edges

ALTER TABLE REBUILD: Fixing a Heap Without a Clustered Index

August 8, 2012
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Heap, SQL Index, SQL Table Operation

A heap with widening rows collects forwarded records. Here is how to measure them, fix them and know when the fix will not last.

Read More
A tall wooden bookcase standing against a wall, with a red sanding block on the floor in front of it.

Nonclustered Index Rebuild Quiz: Does a Clustered Rebuild Touch Them?

January 12, 2012
Pinal Dave
SQL Puzzle
Clustered Index, SQL Heap, SQL Index, SQL Statistics

This Nonclustered Index Rebuild Quiz asks what happens to the other indexes when you rebuild the clustered index. The answer is nothing, and a tested script shows it. It also covers the cases where SQL Server does rebuild them.

Read More
A loose heap of raked autumn leaves spilling beside an empty slatted leaf bin, a red rake against the wall.

Heap Tables: When a Table Without a Clustered Index Hurts

August 5, 2010
Pinal Dave
SQL Performance
Clustered Index, SQL Heap, SQL Index, SQL Server

Find heap tables, inspect forwarded records and empty-page behavior, and choose between a clustered index and a planned rebuild.

Read More
Previous 1 2
  • Books
  • Testimonials
  • Privacy Policy

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