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
Reusable templates remain separate from the template still engaged in a working press.

SQL SERVER – MARK_IN_USE_FOR_REMOVAL Cache Scope and Costs

January 8, 2021
Pinal Dave
SQL Tips and Tricks
SQL Cache, SQL Memory, SQL Scripts, SQL Server

To Remove Unused cache entries, I first inspect cache and workload evidence. My original intervention followed other customer tuning work.

Read More
Gouache painting of a shelf of unused trowels with one worn trowel with a vermilion handle

Table Usage in the Plan Cache: Count Queries That Touch a Table

January 4, 2021
Pinal Dave
SQL Performance
Execution Plan, SQL Cache, SQL Scripts, SQL Server

Table usage in the plan cache shows how many times the cached queries of a database touched each table. This post builds a demo database, shows why a text search of the cache misleads, reads the table names from the plan XML, and lists the queries behind one table.

Read More
Ash and a remaining ember indicate a recent fire without revealing its complete history

When was Stored Procedure Last Compiled? – Interview Question of the Week #292

September 6, 2020
Pinal Dave
SQL Interview Questions and Answers
SQL Cache, SQL Performance, SQL Scripts, SQL Server, SQL Stored Procedure

Question: When was Stored Procedure Last Compiled?

Answer: Honestly, it is difficult to figure out when was the stored procedure last compiled.

Read More
Gouache painting of a squirrel on a mossy stump holding a vermilion acorn, with an empty basket nearby

Give Memory Back to the OS? Why SQL Server Doesn’t

June 9, 2020
Pinal Dave
SQL Tips and Tricks
SQL Cache, SQL DMV, SQL Memory, SQL Scripts

This is a guest post by Brian Gale. It explains why SQL Server doesn’t give memory back to the OS, what the buffer pool keeps in that memory, and why max server memory needs a realistic value. Two queries show what is held right now.

Read More
A replacement shaping template is separate from a populated tray of retained tiles.

SQL SERVER – SQL_NO_CACHE and OPTION RECOMPILE Target Different Caches

April 6, 2020
Pinal Dave
SQL Tips and Tricks
MySQL, Query Hint, SQL Cache, SQL Scripts, SQL Server

OPTION (RECOMPILE) and SQL_NO_CACHE concern different cached objects. A banking customer using MySQL and SQL Server prompted my comparison.

Read More
A wooden cable drum on a quay paying out rope, a red chalk mark on the rope showing how far it has moved.

Batch Requests and Compilations per Second From T-SQL

March 26, 2020
Pinal Dave
SQL Performance
Recompile, SQL Cache, SQL Counter, SQL DMV, SQL Server

Calculate compilations per second from cumulative SQL Server counters, compare batch rates, and investigate single-use plans with context.

Read More
One bowl of tiles supplies two distinct mosaic arrangements

What is the Difference Between sql_handle and plan_handle?- Interview Question of the Week #269

March 22, 2020
Pinal Dave
SQL Interview Questions and Answers
SQL Cache, SQL DMV, SQL Memory, SQL Scripts, SQL Server

Question: What is the Difference Between sql_handle and plan_handle?
Answer: I was recently asked this question. Let us see the answer today.

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

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