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 plank bridge over a brook loaded with sandbags, the top one vermilion

oStress Load Test: Run Many Sessions Against SQL Server

April 27, 2020
Pinal Dave
SQL Performance
Command Line, SQL Server, sqlcmd, Testing

An oStress load test runs one query from many connections at once, so you can watch SQL Server under a crowd. This post explains the main switches and runs a small first test with five connections. It also builds the same test with sqlcmd workers, for machines without oStress.

Read More
Gouache painting of a row of white beehives in a meadow, some open and some closed, one vermilion

Query Store Status for Every Database in SQL Server

April 24, 2020
Pinal Dave
SQL Performance
Query Store, SQL DMV, SQL Scripts, SQL Server Configuration

Query Store status for every database takes two queries, and the first is not enough. This post builds four demo databases, shows why the is_query_store_on flag hides frozen and read-only states, and runs one script that reads the real state of each database. It also shows what Query Store costs in memory.

Read More
A heavy door propped open by a red wedge that has quietly slid across the floor.

Forcing a Plan in Query Store and Checking That It Held

April 17, 2020
Pinal Dave
SQL Performance
Execution Plan, Query Store, SQL Performance, SQL Server

Use forcing a plan in Query Store with verified IDs, then audit force failures and runtime results every week so the fix stays useful.

Read More
A front door with two identical brass doorbells, one polished and gleaming, the other dull with a small cobweb.

Duplicate Statistics: Auto-Created Stats That Shadow Index Statistics

April 16, 2020
Pinal Dave
SQL Performance
DBA, SQL Index, SQL Server, SQL Statistics

Find duplicate statistics on index-leading columns, compare freshness and sampling, and generate cautious DROP STATISTICS candidates.

Read More
Gouache painting of a small chest with one vermilion drawer open beside a pile of wooden planks

Rebuild All Indexes on a Table in SQL Server: SSMS and T-SQL

April 7, 2020
Pinal Dave
SQL Performance
SQL Index, SQL Performance, SQL Scripts, SQL Server Management Studio

To rebuild all indexes on a table, right-click the Indexes folder in SSMS and choose Rebuild All, or run ALTER INDEX ALL with REBUILD. This post checks fragmentation first, rebuilds a demo table and shows what the command does to a disabled index. It also compares REBUILD with REORGANIZE and the options that matter.

Read More
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 half-woven basket with a bundle of reeds and one vermilion reed where the weaving stopped

Canceled Query Plan: Three Ways to Capture It in SQL Server

April 1, 2020
Pinal Dave
SQL Performance
Execution Plan, Query Store, SQL DMV, SQL Server Management Studio

A canceled query plan can be captured with Live Query Statistics, with a live plan query while the statement runs, or from Query Store after the cancel. This post runs a long query, reads its plan while it runs, cancels it and then reads the aborted run from Query Store. It also explains which plan each method returns.

Read More
Previous 1 … 25 26 27 28 29 30 31 … 127 Next
  • Books
  • Testimonials
  • Privacy Policy

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