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 stack of wooden crates with one pear on top and a vermilion padlock, beside smaller crates on a harbor quay

Memory Grant Feedback Loop: When SQL Server Stops Adjusting

November 29, 2019
Pinal Dave
SQL Performance
Execution Plan, SQL Memory, SQL Scripts

The memory grant feedback loop adjusts a grant after every run, and a query whose needs swing can send it back and forth. In a tested demo SQL Server stops adjusting on run 33 and falls back to its first grant. The post also shows what SQL Server 2025 does by default.

Read More
Gouache painting of a large cardboard box holding a terracotta pot with empty space around it beside a small snug box with a cream pot

IsMemoryGrantFeedbackAdjusted Values: What Each Status Means

November 28, 2019
Pinal Dave
SQL Performance
Execution Plan, SQL Memory, SQL Scripts

IsMemoryGrantFeedbackAdjusted values tell you what SQL Server did with the memory grant of one run. A tested demo produces every status: first execution, accurate grant, adjusting, stable, percentile adjusting and feedback disabled. The post also shows which run each status appears on.

Read More
Gouache painting of three wooden boxes of growing size, with a blue fabric bundle in the middle one and a vermilion bundle in the smallest

Memory Grant Feedback Explained: How SQL Server Learns

November 27, 2019
Pinal Dave
SQL Performance
Execution Plan, SQL Memory, SQL Scripts

Memory grant feedback explained with one small demo. A sort asks for 13256 KB, uses 160 KB, and gets a corrected grant of 1536 KB on the next run. The post also shows how to read the status in the plan and what the feature needs.

Read More
Gouache painting of four wooden chests in an attic with their keys in front and one key in vermilion

Memory-Optimized Files: List Logical and Physical Names

October 4, 2019
Pinal Dave
SQL Performance
In-Memory OLTP, SQL DMV, SQL Memory, SQL Scripts

To list memory-optimized files, join sys.dm_db_xtp_checkpoint_files to sys.database_files. This post builds a small memory-optimized database, shows the container’s logical and physical name and counts its checkpoint files by type and state. It also explains why a container holds far more disk space than its data uses.

Read More
SQL SERVER - Unable to Start SQL Server Service or Connect After Incorrectly Setting Max Server Memory to a Low Value

SQL SERVER – Unable to Start SQL Server Service or Connect After Incorrectly Setting Max Server Memory to a Low Value

September 26, 2019
Pinal Dave
SQL Tips and Tricks
SQL Connection, SQL Error Messages, SQL Memory, SQL Scripts, SQL Server, Starting SQL

After incorrectly setting max server memory to 14 MB instead of 145000, a client could not start SQL Server. Here is how we got it back online.

Read More
Title card: RESOURCE_SEMAPHORE_QUERY_COMPILE Wait Type

SQL SERVER – Brief Note About RESOURCE_SEMAPHORE_QUERY_COMPILE Wait Type Resource

September 17, 2019
Pinal Dave
SQL Performance
SQL Memory, SQL Scripts, SQL Server, SQL Wait Stats

Today we will see Brief Note About RESOURCE_SEMAPHORE_QUERY_COMPILE Wait Type resource. I wrote a blog post about Enable Lock Pages in Memory LPIM.

Read More
Gouache painting of a neat stack of leaves held down by a vermilion stone while loose leaves lie at the edge of the table

Lock Pages in Memory: When to Enable It and How to Check

September 16, 2019
Pinal Dave
SQL Tips and Tricks
SQL Memory, SQL Server Configuration, Windows

Lock Pages in Memory is a Windows right that stops Windows from paging out the SQL Server buffer pool. This post explains what it does and what it doesn’t, how to grant it to the service account and how to check the result with T-SQL. It also covers the max server memory setting that must go with it.

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

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