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 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
A large machine accepts a separate older fitting profile while another profile remains preserved.

SQL SERVER 2019 – Supports Compatibility Level from 2008 to 2019

November 13, 2019
Pinal Dave
SQL Tips and Tricks
Compatibility Level, SQL Scripts, SQL Server, SQL Server Configuration

Compatibility Level from 2008 to 2019 requires separating database migration from engine upgrade support. SQL Server 2019 supports levels 100 through 150.

Read More
A cabinet's contents are visible through glass while a locked door prevents additions

Why Query Store Actual Operation Mode is Not Same as Requested? – Interview Question of the Week #248

October 27, 2019
Pinal Dave
SQL Interview Questions and Answers
Query Store, SQL Scripts, SQL Server, SQL Server Configuration

Question: Why Query Store Actual Operation Mode is Not Same as Requested? Query Regression (poor performing queries, once working great)

Read More
Gouache painting of several rowboats waiting at a canal lock with one vermilion boat edging ahead

Priority Boost in SQL Server: Check It and Turn It Off

October 18, 2019
Pinal Dave
SQL Performance
SQL Scripts, SQL Server, SQL Server Configuration, SQL Server Management Studio

Priority boost sounds like a speed setting, but it can make a server slower. This post explains what the option does, checks it with a query that works when Management Studio doesn’t show it, prints the statements that turn it off with their undo, and explains why a restart is needed.

Read More
Gouache painting of a row of park benches looking out over a pond with one vermilion bench turned the other way

MAXDOP Query Hint: Override the Server Setting for One Query

October 1, 2019
Pinal Dave
SQL Performance
MAXDOP, Parallel, SQL Scripts, SQL Server Configuration

The MAXDOP query hint sets how many processors one query can use, whatever the server setting says. This post proves it in both directions on a test table, shows that the hint can’t force a parallel plan and adds the database scoped setting between the two. Every step leaves the server setting alone.

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
Gouache painting of a small sailboat with a loosely furled vermilion sail while trees bend in the wind behind it

Windows Power Plan for SQL Server: Use High Performance

August 13, 2019
Pinal Dave
SQL Performance
Hardware, SQL CPU, SQL Server Configuration, Windows

The Windows power plan decides how fast the processors run, and an energy saving plan can slow SQL Server without raising any error. This post shows how to check the active plan, how to switch it and undo the change, and how to time the difference with a repeatable T-SQL loop.

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

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