SQL Server emergency? Email pinal@sqlauthority.com with URGENT in the subject line.

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.

Continue Reading

Show Clipboard History in SSMS: SQL in Sixty Seconds #129

Show Clipboard History in SSMS 22 sits on the Edit menu with the Ctrl+Shift+V shortcut, where the 2020 video used the older Cycle Clipboard Ring name. I could not test the editor feature from a script, so this post tests T-SQL on SQL Server 2025 that builds row count, index rebuild and procedure scripts worth pasting.

Continue Reading