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
Gouache painting of a crowded shelf of tiles and a spacious table with tiles in neat rows and a vermilion tray

Sort in TempDB for Faster Index Rebuilds: When It Helps

February 20, 2018
Pinal Dave
SQL Performance
SQL Index, SQL Scripts, SQL Server, SQL TempDB

To sort in tempdb during an index rebuild, add WITH (SORT_IN_TEMPDB = ON) to ALTER INDEX. This post tests the option and shows that the user database log stays the same size, because only the sort workspace moves. It also explains when the option helps, how much tempdb space it needs, and when to leave it off.

Read More
Different mechanical gear types surround one table-like central hub

How to List All the Nonclustered Indexes of Your Table? – Interview Question of the Week #155

January 7, 2018
Pinal Dave
SQL Interview Questions and Answers
Clustered Index, ColumnStore Index, SQL Index, SQL Scripts, SQL Server

How do you list all the clustered and nonclustered indexes of your table, including columnstore? Here is the script I use in my performance health checks.

Read More
Different column structures are cataloged in a single orderly stone rack

How to List All ColumnStore Indexes with Table Name in SQL Server? – Interview Question of the Week #153

December 24, 2017
Pinal Dave
SQL Interview Questions and Answers
Clustered Index, ColumnStore Index, SQL DMV, SQL Index, SQL Scripts, SQL Server

Question: How to List All ColumnStore Indexes with Table Name in SQL Server? As ColumnStore Indexes are getting more and more popular.

Read More
Gouache painting of an old wooden card catalog drawer pulled open, rows of blank cream cards, with one crooked card tinted vermilion

CPerIndexMetaQS::ErrorAbort: Too Many Dumps From Index Corruption

December 19, 2017
Pinal Dave
SQL Tips and Tricks
Database Corruption, SQL Error Messages, SQL Index, SQL Server, SQL Server DBCC

CPerIndexMetaQS::ErrorAbort in a stack dump points to index corruption in one of your databases. A reader had too many dumps, and the ERRORLOG and DBCC CHECKTABLE showed which index was bad. Here are the two repair options and why backups matter.

Read More
A thicker ledger card has moved to a second shelf, with a forwarding string left at its original slot

What are Forwarded Records in SQL Server? – Interview Question of the Week #145

October 22, 2017
Pinal Dave
SQL Interview Questions and Answers
Clustered Index, SQL DMV, SQL Index, SQL Scripts, SQL Server

What are forwarded records in SQL Server? It is an old concept, yet few new DBAs know it. Here is a short answer about heap rows that moved to a new page.

Read More
A terraced vineyard on a hillside, flat steps of different widths roughly following the slope

Querying a Histogram With sys.dm_db_stats_histogram Instead of DBCC

September 27, 2017
Pinal Dave
SQL Performance
SQL DMV, SQL Index, SQL Server, SQL Statistics

Query sys.dm_db_stats_histogram to inspect statistics steps, compare stored estimates with data, and identify values beyond the last step.

Read More
An unfinished woven panel remains on its loom beside a removable stop.

SQL SERVER – How to Abort Index Rebuilding After Specific Time?

August 2, 2017
Pinal Dave
SQL Performance
SQL Index, SQL Scripts, SQL Server

An index rebuilding limit can control lock waiting or a resumable execution interval. I decide which behavior the maintenance window needs.

Read More
Previous 1 … 19 20 21 22 23 24 25 … 64 Next
  • Books
  • Testimonials
  • Privacy Policy

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