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
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
Title card: HADRAG: Instance Not Found in SqlInstToNodeMap

SQL SERVER – Always On AG – HADRAG: Did not Find the Instance to Connect in SqlInstToNodeMap Key

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

After unexpected failovers, an availability group would not come online: Did not find the instance to connect in SqlInstToNodeMap key. This is how we solved it.

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
Gouache painting of three seedlings at different heights with a vermilion ribbon on the middle one

Estimated Completion Time for Backup, Restore and DBCC

September 15, 2018
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL DMV, SQL Scripts, SQL Server DBCC

The estimated completion time of a backup, restore or DBCC command is one query away. This post builds a monitor query on sys.dm_exec_requests and watches a backup, a restore and a DBCC check in a second window. It also covers STATS and the DBCC step name.

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

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