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 still music room with a small vermilion music box beginning to turn on the bench

Idle CPU Condition in SQL Server Agent: How It Works

September 28, 2019
Pinal Dave
SQL Tips and Tricks
SQL CPU, SQL Server Agent, SQL Server Management Studio

The idle CPU condition tells SQL Server Agent when the CPUs are quiet enough to start a job. This post shows where to set it, how the two numbers work and how to create the schedule. It also reads the CPU history of your server in T-SQL, so you can choose values that the server can actually meet.

Read More
Active parallel loom threads are inspected separately from preserved guides and worn tools.

SQL SERVER – Active Parallel Requests and Cached Parallel Query History

September 4, 2019
Pinal Dave
SQL Performance
Parallel, SQL CPU, SQL Scripts, SQL Server

I Identify parallel running requests separately from parallel queries recorded in the cache. Those lists answer different performance questions.

Read More
Illustrated cover: Stream Aggregate vs Gather Streams

SQL SERVER – Is Stream Aggregate is Same as Gather Streams of Parallelism?

August 30, 2019
Pinal Dave
SQL Tips and Tricks
Execution Plan, Parallel, SQL CPU, SQL Operator, SQL Scripts, SQL Server

Is Stream Aggregate is Same as Gather Streams of Parallelism? – This was one of the brilliant questions I had received during my recent engagement.

Read More
Gouache painting of a wooden marble run with three blocked channels and a vermilion marble in the open one

ENABLE_PARALLEL_PLAN_PREFERENCE Limits: Rows Per Thread

August 29, 2019
Pinal Dave
SQL Tips and Tricks
Parallel, Query Hint, SQL CPU, SQL Scripts

The ENABLE_PARALLEL_PLAN_PREFERENCE limits are easy to miss: the hint can’t make every query parallel, and it can’t spread rows evenly over the threads. This post proves three limits from the last actual plan of demo queries, with the rows each thread processed and the reason a plan stays serial.

Read More
Gouache painting of a track splitting into four parallel tracks with a vermilion switch lever set to the wide side

Force a Parallel Plan: ENABLE_PARALLEL_PLAN_PREFERENCE Hint

August 27, 2019
Pinal Dave
SQL Performance
Parallel, Query Hint, SQL CPU, SQL Scripts

To force a parallel plan for one query, add the ENABLE_PARALLEL_PLAN_PREFERENCE hint to its OPTION clause. This post shows why a cheap query stays serial, runs a demo query with and without the hint, proves the difference from the last actual plan, and explains why the hint belongs in a test and not in every query.

Read More
Gouache painting of wheelbarrows of apples waiting in line at one apple press with the first barrow in vermilion

Runnable Sessions in SQL Server: What to Check Next

August 16, 2019
Pinal Dave
SQL Performance
SQL CPU, SQL DMV, SQL Scripts, SQL Server

Runnable sessions are sessions that have everything they need except a free CPU. This post counts requests by status, checks that SQL Server can see every processor, reads the settings that cap CPU use, and lists the statements waiting in the queue, so a long queue next to a half idle CPU stops being a puzzle.

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 … 3 4 5 6 7 8 9 … 14 Next
  • Books
  • Testimonials
  • Privacy Policy

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