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

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

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.

Continue Reading