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 an overflowing vermilion basket of linens beside a single copper washtub

Query for CPU Pressure: Sample the Scheduler Queue

April 2, 2020
Pinal Dave
SQL Performance
SQL CPU, SQL DMV, SQL Monitoring, SQL Scripts

To sample the scheduler queue, read the runnable counts of every scheduler eight times, one second apart, and compare the result with a baseline. This post shows the queue on a quiet server and again while more busy sessions than schedulers run. It reads the spread, the streak and the average that tell pressure from noise.

Read More
Gouache painting of a row of cream bicycles in a shed and one distant vermilion bicycle alone on a hilltop path

Scheduler ID Values in dm_os_schedulers: What the Big Numbers Mean

March 13, 2020
Pinal Dave
SQL Performance
SQL CPU, SQL DMV, SQL Scripts, SQL Server

Scheduler ID values in dm_os_schedulers run from 0 up to a few thousand, and then jump past one million. This post groups the rows into user, dedicated admin connection and hidden schedulers, and shows the filter that keeps CPU scripts honest. It also shows why filtering on the number alone is fragile.

Read More
Gouache painting of three windmills of different sizes in a meadow, the small one with vermilion sails

Choosing a Processor for SQL Server: Count the Licensed Cores

February 18, 2020
Pinal Dave
SQL Tips and Tricks
Hardware, SQL CPU, SQL Licensing, SQL Server

Choosing a processor for SQL Server starts with the license, because SQL Server is licensed per core and the cores you buy decide the bill. This post reads what the server reports, counts the cores that matter, and explains the edition limits and the per-core speed trade. It ends with a way to size cores from measured CPU use.

Read More
Gouache painting of a slow mill wheel at a stream with a stick, a stone and leaves blocking it, one leaf vermilion

Reasons for Slow Performance in SQL Server: The Top Five

February 10, 2020
Pinal Dave
SQL Performance
SQL CPU, SQL Function, SQL Index, SQL Memory, SQL Server Configuration

The reasons for slow performance in SQL Server fall into five groups: schema design, T-SQL code, indexing, server deployment and hardware. This post tests three of them on a demo database, with logical reads as proof. It also shows a query that checks four deployment settings.

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 two weathervanes on one roof pointing opposite ways, one in vermilion

Task Manager Update Speed: Why the CPU Graph Looks Stuck

November 26, 2019
Pinal Dave
SQL Tips and Tricks
SQL CPU, SQL Scripts, Windows

Task Manager update speed controls how often the CPU graph moves. When it is set to Paused, the graph freezes and a normal server can look like it has a CPU problem. This post shows the fix and a five second test in T-SQL that tells you whether the graph is alive.

Read More
A figure pushing a loaded red handcart from a smooth lane onto a new stretch of rough cobbles, slowing at the seam.

Finding Regressed Queries in Query Store After a Deployment

November 20, 2019
Pinal Dave
SQL Performance
Execution Plan, Query Store, SQL CPU, SQL Server

Find regressed queries in Query Store using weighted before-and-after duration and CPU, then compare plans and changed procedure text.

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

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