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 hand placing the last berries on a fruit tart as guests arrive, the pattern not perfect but ready to serve.

Optimizer Timeouts: Reason for Early Termination in a Plan

April 1, 2024
Pinal Dave
SQL Performance
Execution Plan, SQL Cache, SQL Performance, SQL Server, SQL XML

Diagnose optimizer early termination in SQL Server plans, find cached timeouts with XML, and simplify queries using measured evidence.

Read More
changing compatibility

SQL SERVER – Impact of Changing Database Compatibility Level on Cache

July 5, 2023
Pinal Dave
SQL Performance
Compatibility Level, SQL Cache

Changing the database compatibility level can clear plans from cache. Here is what happens to the query cache and why it matters.

Read More
Two frying pans on a stove, butter sizzling in the hot one and sitting solid in the cold one.

Cold Cache vs Warm Cache: Testing Query Speed Fairly

January 9, 2023
Pinal Dave
SQL Performance
SQL Cache, SQL Memory, SQL Performance, SQL Server, Testing

Compare cold cache and warm cache query tests using isolated buffer clearing, logical and physical reads, and controlled measurements.

Read More
A wooden butter stamp pressing a flower pattern into butter, a row of identical stamped pats behind it.

Prepared Statements and Plan Reuse From Application Code

July 25, 2022
Pinal Dave
SQL Performance
Ad Hoc Query, Execution Plan, SQL Cache, SQL Server

Inspect prepared statements, handle lifetimes, parameter types, cached Prepared plans, and the limits of optimize for ad hoc workloads.

Read More
Gouache painting of a lemonade stand with a ready vermilion pitcher beside untouched lemons and a squeezer

Cached Plan Reuse: How to Tell if a Query Used a Cached Plan

December 2, 2021
Pinal Dave
SQL Tips and Tricks
Execution Plan, SQL Cache, SQL Scripts

Cached plan reuse is invisible in a result set. This post shows three checks on SQL Server: the compiled and runtime parameter values in the plan, the usecounts column of the plan cache, and the plan creation time.

Read More
Gouache painting of a vermilion-handled tea strainer of old leaves on a saucer beside a cup of fresh tea and a grey teapot

Flush Authentication Cache: Who Can Run DBCC FLUSHAUTHCACHE

October 26, 2021
Pinal Dave
SQL Tips and Tricks
SQL Azure, SQL Cache, SQL Server DBCC, SQL Server Security

Flush authentication cache entries with DBCC FLUSHAUTHCACHE. This post tests the command on SQL Server 2025, shows who can run it and that on SQL Server 2025 it ends no open session, and says what it is documented to do on Azure SQL Database.

Read More
cache or disk

Snowflake – Query Result from Cache or Disk

October 1, 2021
Pinal Dave
SQL Tips and Tricks
Snowflake, SQL Cache, SQL Memory, SQL Server

Comprehensive Database Performance Health Check, The topic is how to identify on the Snowflake platform if the query result is from cache or disk.

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

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