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
last-valid-restore-time

SQL SERVER 2022 – Last Valid Restore Time – Improved Backup Metadata

June 2, 2023
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Server 2022

One significant addition to the backup metadata is the inclusion of the last valid restore time. In SQL Server 2022, a new improved backup metadata feature.

Read More
Gouache painting of a huge barn of hay bales with one vermilion bale and a tiny wheelbarrow

Large Memory Servers: How SQL Server Scans the Buffer Pool

May 29, 2023
Pinal Dave
SQL Performance
SQL Backup and Restore, SQL Extended Events, SQL Memory, SQL Server 2022

SQL Server scans the buffer pool during startup, backup, restore and DBCC, and large memory servers feel it most. An extended event records the scans, shows which commands start one and how many tasks each uses. The last sections explain what SQL Server 2022 changed.

Read More
Buffer Pool Scan

SQL Server 2022 Performance – Buffer Pool Scan

May 24, 2023
Pinal Dave
SQL Performance
SQL Memory, SQL Server 2022

One aspect that can significantly impact performance is scanning the buffer pool in Microsoft SQL Server. This blog explores buffer pool scan.

Read More
Gouache painting of a lump of dough beside three baking tins of different sizes, the medium one vermilion

PSPO Plan Variants: One Query, Several Plans in SQL Server

May 15, 2023
Pinal Dave
SQL Performance
Execution Plan, Parameter Sniffing, SQL DMV, SQL Server 2022

PSPO plan variants let SQL Server cache up to three plans for one parameterized query when the data is very skewed. This post builds a skewed table, shows two variants with different reads for three calls, compares the same calls with the feature off, and explains when PSPO does not apply.

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
A person walking through a maize field, peeling back one cob every few rows, a small red basket on the arm

Approximate Percentiles With APPROX_PERCENTILE_CONT

October 31, 2022
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Performance, SQL Server, SQL Server 2022

Use APPROX_PERCENTILE_CONT for large response-time summaries, compare exact percentiles, and interpret the documented rank error bound.

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

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