Gouache painting of a wooden boat on a cradle with a tall mast and a large dark vermilion sail

Performance Regression After a SQL Server Upgrade: First Aid

A performance regression after an upgrade hurts most when users are waiting. This post shows a first-aid switch that brings back the old row estimates without lowering the compatibility level, and proves with a demo what changes and what stays. It also covers the undo, the per-query options and the steps that find the real cause.

Read More
Gouache painting of a wooden suggestion box on a porch rail with a vermilion pencil beside it

Partition Switch in SQL Server: Move a Million Rows in a Moment

A partition switch moves a whole partition from one table to another without copying a single row. This post builds a partitioned table with a million rows, switches the January partition out and back in, and shows that only metadata changes. It lists the five errors that stop a switch, with the real message numbers, and ends with the sliding window pattern.

Read More