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
Stacks of blank index cards are weighed on a brass balance

How to Find Size of the Index for Tables? – Interview Question of the Week #198

November 4, 2018
Pinal Dave
SQL Interview Questions and Answers
SQL DMV, SQL Index, SQL Scripts, SQL Server

How do you find the size of the index for tables? A client asked me during a Health Check, and this script lists schema, table, index and size in KB and MB.

Read More
SQL Server backup size tool.

SQL SERVER – Finding Compression Ratio of Backup

October 27, 2018
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL DMV, SQL Scripts, SQL Server

Is there a way to know the compression ratio of backup files in SQL Server? Here is a quick script on msdb backupset that compares backup size with compressed size.

Read More
Gouache painting of two water pumps with watering cans waiting, one spout clamped in vermilion

Full-Text Index Blocking Redo on an Always On Secondary

October 20, 2018
Pinal Dave
SQL Tips and Tricks
AlwaysOn, SQL DMV, SQL High Availability, SQL Lock, SQL Scripts

A full-text index can block the redo thread of a readable Always On secondary. This post shows the three clues to read in sys.dm_exec_requests, how to find the internal table and how to check change tracking. It ends with the fix: manual tracking and a scheduled population.

Read More
An ant trail crosses a picnic cloth toward the food

How to Find Queries Using an Index From SQL Server Plan Cache? – Interview Question of the Week #195

October 14, 2018
Pinal Dave
SQL Interview Questions and Answers
SQL Cache, SQL DMV, SQL Index, SQL Scripts, SQL Server

Before I dropped an unused index, my client’s CEO wanted proof. Here is how to find queries using an index from the SQL Server plan cache.

Read More
Gouache painting of two brass compasses lying side by side on a folded paper map, their needles pointing in different directions, one needle tip vermilion

HADRAG Error: Did Not Find the Instance to Connect in SqlInstToNodeMap Key

October 12, 2018
Pinal Dave
SQL Tips and Tricks
AlwaysOn, SQL DMV, SQL Error Messages, SQL High Availability, SQL Server Cluster

The HADRAG error ‘Did not find the instance to connect in SqlInstToNodeMap key’ kept an Always On availability group offline after unexpected failovers. The cluster log pointed to a metadata mismatch. Dropping the group on the secondary and recreating it brought it back.

Read More
An amber warning lamp standing alone on wet concrete in a dark plant room

SQL SERVER – Timeout Occurred While Waiting for Latch: Class FGCB_ADD_REMOVE

October 11, 2018
Pinal Dave
SQL Tips and Tricks
Disk, File format, SQL DMV, SQL Error Messages, SQL Extended Events, SQL Log, SQL Server, SQL Server Configuration

Latch FGCB_ADD_REMOVE timeouts mean a data file is growing slowly. Measured on SQL Server 2025: 4 GB of data in 98 ms, 4 GB of log in 2.3 seconds.

Read More
Gouache painting of a clear pond filling with silt from a muddy stream with a vermilion footbridge over it

Find the Query Growing TempDB in SQL Server

September 17, 2018
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts, SQL TempDB

To find the query growing TempDB, read the space each session has allocated and join it to its statement. This post separates temporary tables from spills, watches both live in a second window and shows the totals after a query ends. It ends with ways to fix a spill.

Read More
Previous 1 … 15 16 17 18 19 20 21 … 45 Next
  • Books
  • Testimonials
  • Privacy Policy

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