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 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
A local radiator valve adjusts heat for one room

What is the Priority of Database Scoped Configurations? – Interview Question of the Week #254

December 8, 2019
Pinal Dave
SQL Interview Questions and Answers
SQL CPU, SQL Performance, SQL Server, SQL Server Configuration

Question: What is the Priority of Database Scoped Configurations over Global Configuration at Server Level?

Answer: This is a follow-up question.

Read More
Gouache painting of an open wooden dollhouse with six rooms in cream, slate blue and sage, the middle column with vermilion rugs

Database Scoped Configuration Options in SQL Server

December 7, 2019
Pinal Dave
SQL Performance
SQL Scripts, SQL Server 2019, SQL Server Configuration

Database scoped configuration options change how one database behaves, without touching the server. This post lists all 41 options on SQL Server 2025, finds the 7 ids that are missing, and changes and restores two settings in a demo database. It also answers the old question about configuration id 5.

Read More
Gouache painting of two matching baskets of sage pears on a market stall, one holding a single vermilion pear

Missing tempdb Files: master_files vs database_files

December 6, 2019
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts, SQL TempDB

Missing tempdb files show up as a mismatch between sys.master_files and tempdb.sys.database_files. This post compares the two with a query, simulates the missing files on a copy of the catalog, and shows the error log message that gives the cause. The fix is to correct the path and restart.

Read More
Two icebergs cut at the waterline, the smaller-looking one hiding a huge mass below.

Why Query Cost Percentages in a Plan Mislead You

December 5, 2019
Pinal Dave
SQL Performance
Execution Plan, SQL Performance, SQL Server

Test why query cost percentages are estimates by comparing two statements with STATISTICS IO, TIME, and query DMV counters.

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
Two matching kites on the grass, differing only in their tails, one short and red.

Comparing a Good and a Bad Plan for One Query in Query Store

December 3, 2019
Pinal Dave
SQL Performance
Execution Plan, Query Store, SQL Performance, SQL Server

Compare a good and a bad plan in Query Store using runtime history, SSMS Compare Showplan, estimates, joins, grants, and parallelism.

Read More
Previous 1 … 133 134 135 136 137 138 139 … 843 Next
  • Books
  • Testimonials
  • Privacy Policy

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