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 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
Gouache painting of a long pegboard on a table with pliers, a saw, two vermilion-handled hammers, one set crosswise out of line

Performance Tuning Mistakes in SQL Server: 11 Habits to Fix

February 1, 2023
Pinal Dave
SQL Performance
Best Practices, SQL Backup and Restore, SQL Cursor, SQL Index, SQL Statistics

Performance tuning mistakes are habits, and each one has a check. Eleven sit in one table, and five are measured on a demo database: a missing index, stale statistics, a row by row loop, a giant delete and a type that cannot be indexed.

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
Backup and Performance

Compressed Backup and Performance – SQL in Sixty Seconds #196

April 12, 2022
Pinal Dave
SQL Video
SQL Backup and Restore, SQL in Sixty Seconds, SQL Server

I was recently asked if I have a handy script that can help us take compressed backup and uncompressed backup. Backup and Performance

Read More
Gouache painting of a large picnic basket of bread and green apples beside a small neatly packed basket with a vermilion handle

Compressed and Uncompressed Backup: One Script, One Switch

March 21, 2022
Pinal Dave
SQL Tips and Tricks
Compression, SQL Backup and Restore, SQL Scripts

A compressed and uncompressed backup differ by one word. This post puts COMPRESSION and NO_COMPRESSION in one script with a switch, compares size and time, and shows that the restore statement is the same for both.

Read More
Hands lifting a colored pane from a salvaged window to fill the one gap in a stained glass window

Recovering One Dropped Table From a Full Backup

December 23, 2021
Pinal Dave
SQL Tips and Tricks
DBA, SQL Backup and Restore, SQL Table Operation

Recover one dropped table through a separate restored database, choose the recovery point, copy its data, and rebuild the table rules.

Read More
A usable cabinet copy stands beside a protected original and a separate recovery key.

SQL SERVER – Source Database in Restoring State

October 19, 2021
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Scripts, SQL Server, SQL Server Management Studio

A Source Database in Restoring State can follow a tail-log backup WITH NORECOVERY. A customer encountered this while restoring another copy.

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

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