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
A restricted valve limits flow from a large vessel into a smaller receiving basin.

SQL SERVER – Query Specific Wait Statistics and Performance Tuning

July 25, 2019
Pinal Dave
SQL Performance
Resource Governor, SQL Memory, SQL Server, SQL Server Management Studio, SQL Wait Stats

Query Specific Wait Statistics helped explain a sudden customer-query slowdown. The remaining workload ran normally, and recompilation had not helped.

Read More
Gouache painting of a garden tap with a vermilion wheel feeding a pinched hose into a wooden trough

Disable Resource Governor: Why RECONFIGURE Turns It On

July 17, 2019
Pinal Dave
SQL Tips and Tricks
Resource Governor, SQL Memory, SQL Scripts, SQL Server

To disable Resource Governor, run ALTER RESOURCE GOVERNOR DISABLE. The post shows why RECONFIGURE enables the feature, with a tested script that restores the state it finds. It also explains how saved pool limits come back to life.

Read More
A beach volleyball net standing intact on smooth sand at dawn, every footprint around it washed away by the tide.

SCHEMA_ONLY vs SCHEMA_AND_DATA for Memory-Optimized Tables

July 12, 2019
Pinal Dave
SQL Tips and Tricks
In-Memory OLTP, SQL Log, SQL Memory, SQL Server

Compare SCHEMA_ONLY and SCHEMA_AND_DATA memory-optimized tables, inspect logging and recovery, and test an isolated offline-online cycle.

Read More
Gouache painting of a bare kitchen counter with one vermilion jar brought back from the pantry

DBCC DROPCLEANBUFFERS Impact on Memory: See a Cold Cache in Action

July 11, 2019
Pinal Dave
SQL Performance
SQL Memory, SQL Scripts, SQL Server DBCC

DBCC DROPCLEANBUFFERS removes every clean page from memory, so the next query reads from disk. This post counts the pages of one database before and after, shows why a CHECKPOINT comes first, and compares a cold read with a warm read.

Read More
Gouache painting of a sand timer with vermilion sand between two trays of pears on a wooden table

CHECKPOINT Impact on Memory: Watch Dirty Pages Go to Zero

July 3, 2019
Pinal Dave
SQL Performance
SQL DMV, SQL Memory, SQL Scripts

CHECKPOINT impact on memory is easy to measure. This post counts the dirty and clean pages of one database before and after a checkpoint. Dirty pages drop to zero, the clean pages grow by the same amount, and nothing leaves memory.

Read More
Gouache painting of a line of boxcars waiting on one track before a vermilion switch lever

PAGELATCH_UP Waits and Suspended Sessions: Find the Hot Page

June 26, 2019
Pinal Dave
SQL Performance
SQL Data Storage, SQL Memory, SQL TempDB, SQL Wait Stats

PAGELATCH_UP waits mean that sessions queue for the same page in memory, and that page can be named. This post reads the waiting sessions, turns the resource into a database, a file and a page, and tells an allocation page from an ordinary one. It then lists the fixes for tempdb and for a user database.

Read More
Gouache painting of a vermilion cart rolling crates up a wide ramp onto a boat while a narrow plank stands unused

CHECKPOINT Duration: Can You Speed Up a Manual CHECKPOINT?

June 18, 2019
Pinal Dave
SQL Performance
Best Practices, SQL Memory, SQL Scripts, SQL Server

The CHECKPOINT duration argument sets a target time in seconds. This post times a manual checkpoint on a database with 130 MB of dirty pages, and shows that a long duration slows it badly while a short one does not make it faster. It also shows that a backup flushes dirty pages by itself.

Read More
Previous 1 … 6 7 8 9 10 11 12 … 19 Next
  • Books
  • Testimonials
  • Privacy Policy

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