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 picnic blanket pinned down at its corners by stones, one of them vermilion

LPIM in Configuration Manager: Enable Lock Pages in Memory

January 7, 2020
Pinal Dave
SQL Tips and Tricks
SQL Memory, SQL Server 2019, SQL Server Configuration, SQL Server Services

You can set LPIM in Configuration Manager without editing the local security policy by hand. This post shows where the property sits, how to read it from PowerShell, and how to check the result with T-SQL after the restart. It also explains why a memory cap comes first.

Read More
Gouache painting of a row of wicker baskets on a bench beside a full shelf of oven rolls, one basket holding a vermilion item

Queries Waiting for Memory: Read the Grant Counters

December 10, 2019
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Memory, SQL Scripts

Queries waiting for memory are counted by the Memory Grants Pending counter and listed by sys.dm_exec_query_memory_grants. A tested demo holds a sort grant of 41,848 KB with a blocked query and reads it from the view. The post explains how to spot a waiting request and what causes the wait.

Read More
Gouache painting of two wooden chutes, one with a single vermilion marble at the bottom and one with a row of grey marbles

Row Mode Memory Grant Feedback: It Needs Level 150

December 9, 2019
Pinal Dave
SQL Performance
Execution Plan, SQL Memory, SQL Scripts

Row mode memory grant feedback needs compatibility level 150 or higher, while batch mode needs only 140. A tested demo runs a row mode sort and a batch mode sort at levels 140, 150 and 170. The row sort keeps its grant of 11,888 KB at level 140 and drops to 1,536 KB at 150.

Read More
Gouache painting of a butterfly net on a garden fence holding one vermilion butterfly among resting grey moths

Memory Grant Feedback Events: Capture Them in T-SQL

December 4, 2019
Pinal Dave
SQL Performance
SQL Extended Events, SQL Memory, SQL Scripts

Memory grant feedback events list every query whose memory grant keeps changing, and the moment SQL Server gives up on it. This post creates the Extended Events session in T-SQL, watches it live in SSMS and reads it with one query that names the procedure.

Read More
MemoryGrantInfo

SQL SERVER – MemoryGrantInfo Property Explanation

December 2, 2019
Pinal Dave
SQL Performance
SQL Memory, SQL Scripts, SQL Server 2019

I have been writing about the Memory Grant Feedback feature. Today we will discuss various properties of MemoryGrantInfo in this blog post.

Read More
An adjustable belt illustrates finding a stable fit

MemoryGrantInfo – What are Different Status of IsMemoryGrantFeedbackAdjusted? – Interview Question of the Week #253

December 1, 2019
Pinal Dave
SQL Interview Questions and Answers
SQL Memory, SQL Server

Question: What are Different Status of IsMemoryGrantFeedbackAdjusted (MemoryGrantInfo Property)? Today we will see a consolidated answer to this question.

Read More
Gouache painting of a glass greenhouse with a bench of cream pots and one plant under a bell jar with a vermilion rim

Stop Memory Grant Feedback: Database Setting and Query Hint

November 30, 2019
Pinal Dave
SQL Performance
SQL Memory, SQL Scripts, SQL Server Configuration

To stop memory grant feedback, use the hint or the setting that matches the mode of the plan. A tested demo shows that a row mode hint keeps a grant at 13,256 KB, while a batch mode hint changes nothing for a row mode sort. The post also corrects the setting names and shows the persistence switch.

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

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