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
Six panel office cartoon: a DBA says the nightly full backup has them covered, gets a 2am call, spends the night restoring 258 log files one at a time, and by morning has a full, differential, log and restore test schedule on the whiteboard

Full, Differential and Log Backups: A Practical Guide

August 25, 2026
Pinal Dave
SQL Performance
SQL Backup and Restore, SQL Performance, Transaction Log

Full, differential and log backups are easy to define and easy to get wrong at 2 AM. This animated guide shows which ones to restore, and in what order.

Read More
tlog

SQL SERVER – Transaction Logs: The Good, The Bad, and The Ugly

August 21, 2023
Pinal Dave
SQL Tips and Tricks
Transaction Log

Providing a comprehensive understanding of their role and potential issues. Let us learn about Transaction Logs: The Good, The Bad, and The Ugly.

Read More
Gouache painting of a bead tray with tiny cells beside a tray of four large compartments, one vermilion

VLF Growth Rules: How Many Virtual Log Files One Growth Adds

February 28, 2023
Pinal Dave
SQL Tips and Tricks
SQL Server 2022, Transaction Log, VLF

The VLF growth rules say how many virtual log files one log growth adds: one up to 64 MB, eight up to 1 GB, sixteen above. This post measures them on a demo database, shows a log with 68 VLFs from 1 MB steps, and repairs it by shrinking and growing once.

Read More
Gouache painting of a ready blank canvas on an easel beside a primed canvas and a pot of vermilion paint

Log File Growth and Instant File Initialization: The 64 MB Rule

February 24, 2023
Pinal Dave
SQL Tips and Tricks
Disk, SQL Server 2022, SQL Server Configuration, Transaction Log

The 64 MB rule says log file growth can skip zeroing when instant file initialization is on, but only up to 64 MB. Two trace flags make the SQL Server error log show a 64 MB growth skipping the zeroing and a 65 MB growth zeroing in full. The last section says what to change.

Read More
Gouache painting of a large roll of sailcloth on a drum inside an open shed, with a vermilion block wedged under it

Log File Not Shrinking: Read log_reuse_wait_desc First

August 24, 2022
Pinal Dave
SQL Tips and Tricks
Shrinking Database, SQL Backup and Restore, SQL Server DBCC, Transaction Log

A log file not shrinking is explained by one column: log_reuse_wait_desc. A demo database reads LOG_BACKUP and ACTIVE_TRANSACTION from it and shows why the first shrink after a log backup can still fail. A table lists the other reasons with the action for each.

Read More
Gouache painting of two open trunks of quilts, one nearly full and one half empty with a vermilion quilt on top

Free Space in Database Files: Check Data and Log Files

August 16, 2021
Pinal Dave
SQL Tips and Tricks
SQL Data Storage, SQL Scripts, SQL Server, Transaction Log

To see the free space in database files, compare each file’s size with the pages it uses. This post gives one query for data and log files, adds the free space on the drive, and checks the log figure against a second source.

Read More
Two daisy chains on a lawn with a gap between them, a child's hands starting a fresh chain

Recovery Model Changes and the Log Backup Chain

August 2, 2021
Pinal Dave
SQL Tips and Tricks
DBA, SQL Backup and Restore, SQL Log, Transaction Log

Explain the log backup chain across FULL and SIMPLE changes, inspect recovery LSNs and backup history, and establish a new backup boundary.

Read More
1 2 3 4 … 14 Next
  • Books
  • Testimonials
  • Privacy Policy

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