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
Three sorting tray sections hold different numbers of cached pebbles while other pebbles remain outside

How to Find SQL Server Memory Use by Database and Objects? – Interview Question of the Week #121

May 7, 2017
Pinal Dave
SQL Interview Questions and Answers
SQL Cache, SQL DMV, SQL Memory, SQL Scripts, SQL Server

Which database uses the most buffer pool? Queries on sys.dm_os_buffer_descriptors to find SQL Server Memory use by database and by object.

Read More
A line of ants on a stone doorstep carrying crumbs, most of a dropped biscuit already gone

Grouping by query_hash to Find Cheap Queries That Cost the Most

March 30, 2017
Pinal Dave
SQL Performance
Query Store, SQL Cache, SQL CPU, SQL DMV, SQL Server

Group cached statements by query_hash to find high total CPU and reads, compare plan hashes, and account for missing cache history.

Read More
Recent impressions remain in wet clay while older marks have been smoothed away

How to Find Recent Executed Queries in SQL Server? – Interview Question of the Week #087

September 4, 2016
Pinal Dave
SQL Interview Questions and Answers
SQL Cache, SQL DMV, SQL Scripts, SQL Server

An interview question that stumped candidates: how do you find recent executed queries in SQL Server? A DMV script using sys.dm_exec_query_stats answers it.

Read More
Casting sprue beside a finished fitting and an unused matching mold

Recovering Unsaved Query Windows After SSMS Closes Unexpectedly

July 28, 2015
Pinal Dave
SQL Tips and Tricks
SQL Cache, SQL Server Management Studio, Windows

A restart ate your script, but maybe not all of it. Two places to look: SSMS recovery files and the text SQL Server remembers.

Read More
A clean-looking mop bucket and wringer beside a mop with a visible dirty stripe

Buffer Cache Hit Ratio: Why a Healthy Number Can Lie

March 18, 2014
Pinal Dave
SQL Tips and Tricks
SQL Cache, SQL Counter, SQL Memory

A 99 percent ratio does not mean your memory is fine. Here is how to read the counter correctly and what to check beside it.

Read More
Cyclists riding in single file behind a leader in a vermilion jersey who breaks the wind for them.

OPTIMIZED_SP_EXECUTESQL in SQL Server 2025: Fewer Compile Storms

July 3, 2013
Pinal Dave
SQL Performance
Dynamic SQL, Recompile, SQL Cache, SQL Server

Test OPTIMIZED_SP_EXECUTESQL in SQL Server 2025, inspect compilation counters and cached plans, and compare a concurrent workload.

Read More
A fresh photo print of a runner at the finish hanging to dry by a red clip in a darkroom

The Last Actual Execution Plan: LAST_QUERY_PLAN_STATS in Practice

June 3, 2013
Pinal Dave
SQL Performance
Execution Plan, SQL Cache, SQL DMV, SQL Server, SQL Server 2019

Capture the last actual execution plan with LAST_QUERY_PLAN_STATS, inspect runtime rows, and understand what cache retention cannot provide.

Read More
Previous 1 … 3 4 5 6 7 8 9 Next
  • Books
  • Testimonials
  • Privacy Policy

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