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
A worn wooden staircase with a spotless new runner just laid down the middle of its treads

Index Usage Stats Reset: Reading Them Without Being Fooled

May 17, 2014
Pinal Dave
SQL Performance
Clustered Index, ColumnStore Index, SQL Index, SQL Wait Stats

Use index usage stats reset in SQL Server with practical examples, clear checks, and the limits you need before changing your database.

Read More
A boot moves into a snowshoe binding while a separate pouch stays behind

Moving a Table to Another Filegroup by Rebuilding Its Clustered Index

April 21, 2014
Pinal Dave
SQL Tips and Tricks
Clustered Index, SQL Data Storage, SQL Index

One statement moves the rows, but large-object data and other indexes stay behind. A small demo shows exactly where everything ends up.

Read More
A boat keel with boards aligned along it and another small group lying crosswise

Clustered Key Choice for Date Range Queries: Date or Identity

December 14, 2013
Pinal Dave
SQL Tips and Tricks
Clustered Index, SQL DateTime, SQL Identity, SQL Index

Should you cluster on OrderDate? Measure one month of orders on three designs and see what each one costs in reads before you rebuild a table.

Read More
A platform luggage cart of suitcases each carrying a huge wooden tag, except one with a small vermilion tag.

Narrow Index Keys: Why the Clustered Key Width Matters Everywhere

September 3, 2013
Pinal Dave
SQL Performance
Clustered Index, Primary Key, SQL Index, SQL Server

Evaluate narrow index keys by comparing clustered GUID and integer designs, measuring index pages, and preserving natural uniqueness.

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
Hands fitting a new wider slat into an old park bench, the old slat leaning beside it

Changing an Index In Place With CREATE INDEX and DROP_EXISTING

May 20, 2012
Pinal Dave
SQL Performance
Clustered Index, DBA, SQL Index, SQL Server

Use DROP_EXISTING to change an index definition in one operation, inspect its columns, and check online availability and dependencies.

Read More
Marbles tipped from a neat row into a bowl, landing mixed

Why a Clustered Index Does Not Guarantee Order Without ORDER BY

March 19, 2012
Pinal Dave
SQL Tips and Tricks
Clustered Index, Execution Plan, SQL Order By, SQL Server

Explain order without ORDER BY through parallel scans, NOLOCK allocation scans, alternate indexes, shared scans, and the explicit sort fix.

Read More
Previous 1 … 3 4 5 6 7 8 Next
  • Books
  • Testimonials
  • Privacy Policy

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